Thursday 27 February 2014

Class 7 - Line

The line statement is used to draw a line from a point to another.It can also be used to draw rectangular boxes. The points represent column and row.

Line (10,15) - denotes 10th column and 15th row.

For a horizontal line , only the column changes not the row.





For a vertical line , only the row changes not the column.


 
To draw a rectangle : Starting column and row are 100 and 100.
the second set of points are diagonally opposite points. 600 is the diagonally opposite column and 300 is the diagonally opposite row.
5 is the colour code, and B is the box code.
 



To draw a square:




 

No comments:

Post a Comment