UNPKG

happy-dom

Version:

Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.

9 lines (8 loc) 441 B
/** * The CanvasGradient interface represents an opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient(), CanvasRenderingContext2D.createConicGradient() or CanvasRenderingContext2D.createRadialGradient(). * * @see https://developer.mozilla.org/en-US/docs/Web/API/CanvasGradient */ export default interface ICanvasGradient { addColorStop(offset: number, color: string): void; }