|
|
Drawing |
|
Back |
extern
void object::Drawing( )
{
pendown(Red); // use a red pen
repeat ( 12 ) // repeat 12x
{
Square(); //
draw a square
turn(30); // turn left
30 degrees
}
}
void object::Square()
{
repeat ( 4 ) // repeat 4x
{
move(5); // draw
1 side of the square
turn(90); // turn left
90 degrees
}
} |
|