public class CanvasGradient extends FillStrokeStyle
Context2d
.
This class serves as a reference to a gradient created using
Context2d.createPattern(com.google.gwt.dom.client.CanvasElement, com.google.gwt.canvas.dom.client.Context2d.Repetition)
.TYPE_CSSCOLOR, TYPE_GRADIENT, TYPE_PATTERN
Modifier | Constructor and Description |
---|---|
protected |
CanvasGradient() |
Modifier and Type | Method and Description |
---|---|
void |
addColorStop(double offset,
java.lang.String color)
Adds a new color stop to the gradient.
|
getType
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString