Click here to Skip to main content
12,395,089 members (68,077 online)
Rate this:
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
Updated 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 14-Jun-12 8:13am
Manas Bhardwaj 14-Jun-12 8:47am
Arunprasath Natarajan 14-Jun-12 8:26am
Well explained
Manas Bhardwaj 14-Jun-12 8:47am
MAC123456 14-Jun-12 8:57am
Thanks Manas
Sry :(
Manas Bhardwaj 15-Jun-12 3:27am
No problem. Glad it helped you :)
Espen Harlinn 14-Jun-12 17:12pm
Manas Bhardwaj 15-Jun-12 3:27am
VJ Reddy 15-Jun-12 6:26am
Good answer. 5!
Manas Bhardwaj 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 14 Jun 2012
Copyright © CodeProject, 1999-2016
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