Wednesday, April 9, 2014

Day 4

Learned about random statements and moving with pixels. Completed Phase 5. This was the last lines of code I wrote today.

for (var count = 0; count < 12; count++) {
  penColour(colour_random());
  turnRight(45);
  penWidth(8);
  moveForward(100);
  turnRight(120);
  moveForward(200);
  turnRight(120);
  moveForward(200);
  turnRight(120);
  moveForward(125);
}

No comments:

Post a Comment