Thursday, August 2, 2012
HTML5 - Canvas Tutorial - 2
Using canvas element, i have developed small application which will offer the color. user can set Red, Green and Blue colors using slider elements and based on that, new color will be formed. I have introduced Opacity attribute that will add transparency to selected color.
Click on source code, to get source of the sample. Here, you can learn about getContext, clearRect, fillStyle, fillRect and fillText methods of Canvas elements.