![]() |
![]() |
![]() |
![]() |
![]() |
|
Now, if you want to draw a simple horizontal line, at position
(0, 50), with length equal to
100, you use the pen as the receiver of the lineFrom:to:
message:
*-- Pen instance
|
| *------ x coordinate of one end
| | *-- y coordinate of that end
v v v
thePen lineFrom: 0 @ 50 to: 100 @ 50.
^ ^
| *-- y coordinate of the other end
*------- x coordinate of the other end