First page Back Continue Last page Graphics
Line
line command:
- line( x1, y1, y1, y2 )
- draws a line (a direct path between two points) to the screen
color is set using the stroke() command
2 points in the coordinate system:
- initial point ( x1, y1 )
- end point ( x2, y2 )