@DOMNoInterfaceObjectAttribute public interface ICanvasGradient
Represents an opaque object describing a gradient.
| Modifier and Type | Method and Description |
|---|---|
void |
addColorStop(double offset,
java.lang.String color)
Adds a new stop, defined by an offset and a color, to the gradient.
|
@DOMNameAttribute(name="addColorStop") void addColorStop(double offset, java.lang.String color)
Adds a new stop, defined by an offset and a color, to the gradient.
offset - A number between 0 and 1.color - A CSS color