Based on [ebalint](https://github.com/ebalint)'s original patch, this commit implements the linear and radial gradients for the canvas. The PR also includes test cases. Depends on #4623 and servo/rust-azure#136. Source-Repo: https://github.com/servo/servo Source-Revision: dea36f981650f027902b4f71f0cdabd2da69fe21
13 lines
428 B
Plaintext
13 lines
428 B
Plaintext
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
interface CanvasGradient {
|
|
// opaque object
|
|
// addColorStop should take a double
|
|
void addColorStop(float offset, DOMString color);
|
|
};
|
|
|
|
|