Liking cljdoc? Tell your friends :D
ClojureScript only.

web.canvas.CanvasGradient

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()`.
raw docstring

add-color-stopcljs

(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`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close