TURTLE GRAPHICS 1.05



ASSIGNMENT:
The sz and pc commands each take more than one number as arguments. The sz command takes two numbers. The first of these numbers represents the distance left or right from the origin (the center of the screen). The second number represents the distance up or down from the origin. Positive numbers represent up or right and negative numbers represent down or left.

The pc command takes three numbers as arguments. These numbers represent a color using the RGB color model. RGB stands for RED, GREEN, and BLUE. The maximum value for each is 255 and the minimum value is 0.

Type in the following example to see how these commands work.

pc 255 0 0 sz -10 50 sz 10 50 hm sz -10 -50 sz 10 -50 hm pc 0 255 0 sz 70 10 sz 70 -10 hm sz -70 10 sz -70 -10 hm pc 0 0 255 sz -40 50 sz -50 40 hm sz 40 50 sz 50 40 hm sz -40 -50 sz -50 -40 hm sz 40 -50 sz 50 -40 hm

TURTLE CHALLENGES

Challenge #1

Challenge #2

Challenge #3

Challenge #4