#include <iostream>
#include <fstream>
◆ down()
Moves the pen's position "down" (increases the y coordinate).
Example: down(10)
will move the pen's position down 10 spots (y will change by 10).
- Parameters
-
n | The number of steps to move down. |
◆ end()
Indicates the end of your drawing.
◆ go()
Moves the pen's position to the given coordinate.
Example: go(10, 5)
will cause the pen's position to change to (10,5).
- Parameters
-
x | The x coordinate to move to. |
y | The y coordinate to move to. |
◆ left()
Moves the pen's position "left" (decreases the x coordinate).
Example: left(10)
will move the pen's position to the left 10 spots (x will change by -10).
- Parameters
-
n | The number of steps to move left. |
◆ pendown()
Sets the pen down so that using go() or the other movement functions will cause a line to be drawn until penup() is called.
◆ penup()
Lifts the pen so the go() and the other functions may be invoked without causing a line to be drawn.
◆ right()
Moves the pen's position "right" (increases the x coordinate).
Example: right(10)
will move the pen's position to the right 10 spots (x will change by 10).
- Parameters
-
n | The number of steps to move right. |
◆ start()
Indicates the start of your drawing.
◆ up()
Moves the pen's position "up" (decreases the y coordinate).
Example: up(10)
will move the pen's position up 10 spots (y will change by -10).
- Parameters
-
n | The number of steps to move up. |