25.21. CanvasRenderingContext2D.createRadialGradient( ): create a radial color gradient25.21.1. SynopsisCanvasGradient createRadialGradient(float xStart, float yStart, float radiusStart, float xEnd, float yEnd, float radiusEnd) 25.21.1.1. Arguments
25.21.1.2. ReturnsA CanvasGradient object representing a radial color gradient. 25.21.2. DescriptionThis method creates and returns a new CanvasGradient object that radially interpolates colors between the circumferences of the two specified circles. Note that this method does not specify any colors for the gradient. Use the addColorStop( ) method of the returned object to do that. To stroke lines or fill areas using a gradient, assign a CanvasGradient object to the strokeStyle or fillStyle properties. Radial gradients are rendered by using the color at offset 0 for the circumference of the first circle, the color at offset 1 for the second circle, and interpolated color values (red, green, blue, and alpha) at circles between the two. 25.21.3. See AlsoCanvasGradient.addColorStop( ), CanvasRenderingContext2D.createLinearGradient( ) |