Click here to Skip to main content
11,714,776 members (79,213 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: HTML HTML5 Canvas
Hi all

How does HTML5 canvas createLinearGradient method works???

Posted 14-Jun-12 1:36am
Edited 14-Jun-12 1:39am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

From w3schools:

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

I wonder if looking at Google is so difficult?
Prasad_Kulkarni at 14-Jun-12 8:13am
Manas Bhardwaj at 14-Jun-12 8:47am
Arunprasath Natarajan at 14-Jun-12 8:26am
Well explained
Manas Bhardwaj at 14-Jun-12 8:47am
MAC123456 at 14-Jun-12 8:57am
Thanks Manas
Sry :(
Manas Bhardwaj at 15-Jun-12 3:27am
No problem. Glad it helped you :)
Espen Harlinn at 14-Jun-12 17:12pm
Manas Bhardwaj at 15-Jun-12 3:27am
VJ Reddy at 15-Jun-12 6:26am
Good answer. 5!
Manas Bhardwaj at 15-Jun-12 6:36am

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 570
1 Richard MacCutchan 275
2 Maciej Los 274
3 OriginalGriff 140
4 CHill60 135
0 Sergey Alexandrovich Kryukov 545
1 CHill60 375
2 Maciej Los 324
3 Richard MacCutchan 310
4 OriginalGriff 260

Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 14 Jun 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100