CanvasGradient Class | |
---|---|
Methods | Description |
addColorStop(t, c) | The parameter t is a value between 0 and 1, where 0 represents the starting color and 1 represents the ending color. The parameter c is a CSS color value that specifies the color at the position t in the gradient. An IndexSizeError exception may be thrown if the value of t is less than 0 or greate than 1. A SyntaxError exception may be thrown if c can not be parsed as a CSS color value. |
© 20072025 XoaX.net LLC. All rights reserved.