Saturday, April 12, 2014

Day 7

Learned about the counter and moveForward commands. Completed all 11 puzzles on Stage 11. This was the last lines of code I wrote today.

var counter;

penWidth(2);
for (counter = 1; counter <= 250; counter += 2) {
  moveForward(counter);
  turnRight(91);
  penColour(colour_random());
}

No comments:

Post a Comment