Cum se face un cerc?

for (var count = 0; count < 360; count++) {
  moveForward(1);
  turnRight(1);
}

///Rombul

turnLeft(60);
moveForward(100);
turnRight(120);
moveForward(100);
turnRight(60);
moveForward(100);
turnRight(120);
moveForward(100);

///Un cubulet 

penColour(colour_random());
turnLeft(60);
moveForward(100);
turnRight(120);
moveForward(100);
turnRight(60);
moveForward(100);
turnRight(120);
moveForward(100);
for (var count = 0; count < 3; count++) {
  penColour(colour_random());
  turnRight(60);
  moveForward(100);
  turnLeft(120);
  moveForward(100);
  turnLeft(60);
  moveForward(100);
  turnLeft(120);
  moveForward(100);
}


Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s