Click the following links for the tutorial for Canvas and Line.
Drawing a Line on Canvas
Set canvas line width, stroke style and draw rectangle
Draw a line on html5 canvas
Add different parallel lines on a canvas
canvas: wait between line strokes / js sleep()
fade out lines after drawing canvas?
clear specific line
match horizontal lines
spawn objects randomly on a line
Pattern to reveal overlaid line art based on pattern pixel color
Draw canvas line
tween a line color in tweenjs canvas
draw dotted line