25.19. CanvasRenderingContext2D.createLinearGradient( ): create a linear color gradient25.19.1. SynopsisCanvasGradient createLinearGradient(float xStart, float yStart, float xEnd, float yEnd) 25.19.1.1. Arguments
25.19.1.2. ReturnsA CanvasGradient object representing a linear color gradient. 25.19.2. DescriptionThis method creates and returns a new CanvasGradient object that linearly interpolates colors between the specified start point and end point. 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. 25.19.3. See AlsoCanvasGradient.addColorStop( ), CanvasRenderingContext2D.createRadialGradient( ) |