The CanvasGradient interface represents an opaque object describing
gradient. It is returned by the methods web.CanvasRenderingContext2D.createLinearGradient()
web.CanvasRenderingContext2D.createRadialGradient()
.
The CanvasGradient interface represents an opaque object describing gradient. It is returned by the methods `web.CanvasRenderingContext2D.createLinearGradient()` `web.CanvasRenderingContext2D.createRadialGradient()`.
(add-color-stop this offset color)
Method.
The CanvasGradient.addColorStop() method adds a new color stop, by an offset and a color, to a given canvas gradient.
void gradient.addColorStop(offset, color);
See also: https://developer.mozilla.org/en-US/docs/Web/API/CanvasGradient/addColorStop
Method. The CanvasGradient.addColorStop() method adds a new color stop, by an offset and a color, to a given canvas gradient. `void gradient.addColorStop(offset, color);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/CanvasGradient/addColorStop`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close