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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.canvas.dom.client.FillStrokeStyle
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a new color stop to the gradient.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.canvas.dom.client.FillStrokeStyle
| |||||||||||
From class
com.google.gwt.core.client.JavaScriptObject
| |||||||||||
From class
java.lang.Object
|
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. |