25.9. CanvasGradient.addColorStop( ): add a change of color at some point in the gradient25.9.1. Synopsisvoid addColorStop(float offset, String color) 25.9.1.1. Arguments
25.9.2. DescriptionaddColorStop( ) provides the mechanism for describing color changes in a gradient. This method may be called one or more times to change the color at particular percentages between the gradient's start and end points. If this method is never called on a gradient, the gradient is transparent. At least one color stop must be specified to produce a visible color gradient. |