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 builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close