sign in


Forgot your password?


Why sign up?
- One account for five websites!
- Free access to Premium Codes
- Acess to cool web tools
- Ask and answer questions
- Stay ahead of other web developers
- and MUCH MORE!

Feel The Power

Html Codes: Canvas- Simple Colorful Line with Transparency

Lines are basic shapes in 2D graphics and when lots of them are used, they may overlap on each other. So you may need to use colors for separating them and also transparency to show what located below. HTML5 Canvas (like other HTML elements) supports different ways to define a color and allows you to put Alpha value as transparency factor (between 0 and 1), when you define a color. The following code shows how you can define colors for HTML5 2D objects and how to draw transparent lines.

If you don't know how to use this code or need more information Click here!


You can leave comments once you sign in/up.


Online Users: 1
Total Online Users: 21
Recent Members: yuri , Ahmadullo, Ruqyahstor, Steven12345, dragoncitya
Twitter LinkedIn Youtube

Download Link to us:


Please put this code in your page.