The CanvasGradient interface represents an opaque object describing
gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient()
CanvasRenderingContext2D.createRadialGradient().
The CanvasGradient interface represents an opaque object describing gradient. It is returned by the methods `CanvasRenderingContext2D.createLinearGradient()` `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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |