W3cubDocs

/Haxe JavaScript

CanvasGradient

package js.html

Available on js

The CanvasGradient interface represents an opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient().

Documentation CanvasGradient by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Methods

addColorStop (offset:Float, color:String):Void

Throws:

null DOMError

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/js/html/CanvasGradient.html