java.lang.Object | |||
↳ | com.google.gwt.core.client.JavaScriptObject | ||
↳ | com.google.gwt.canvas.dom.client.FillStrokeStyle | ||
↳ | com.google.gwt.canvas.dom.client.CanvasGradient |
Gradient object used with Context2d
.
Experimental API: This API is still under development and is subject to change.
This class serves as a reference to a gradient created usingcreatePattern(CanvasElement, Context2d.Repetition)
.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a new color stop to the gradient.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Adds a new color stop to the gradient.
offset | value between 0 and 1 for where the color stop is located. |
---|---|
color | color at the stop. |