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.