Click here to Skip to main content
15,884,237 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi all

How does HTML5 canvas createLinearGradient method works???

Thanks
Posted
Updated 14-Jun-12 1:39am
v2

1 solution

From w3schools:

The createLinearGradient method creates a gradient object that changes from one color to another. <br />
You can specify how and where these changes will take place, using the coordinate parameters. <br />
The x0 and y0 parameters represents the start coordinates of the gradient. <br />
The x1 and y1 parameters represents the end coordinates of the gradient.


http://www.w3schools.com/html5/canvas_createlineargradient.asp[^]

I wonder if looking at Google is so difficult?
 
Share this answer
 
Comments
Prasad_Kulkarni 14-Jun-12 8:13am    
5'ed
Manas Bhardwaj 14-Jun-12 8:47am    
thanks!
Arunprasath Natarajan 14-Jun-12 8:26am    
Well explained
Manas Bhardwaj 14-Jun-12 8:47am    
thanks!
Mac12334 14-Jun-12 8:57am    
Thanks Manas
Sry :(

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900