Skip to content

Instantly share code, notes, and snippets.

@aurels
Created September 30, 2014 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aurels/b3820fad53dfa83dc7cd to your computer and use it in GitHub Desktop.
Save aurels/b3820fad53dfa83dc7cd to your computer and use it in GitHub Desktop.
def draw_circle(x, y, size, color)
goto x, y
pencolor color
for i in (1..360)
forward size
turnright 1
end
end
Turtle.draw do
draw_circle(150, 200, 1, blue)
draw_circle(220, 200, 1, black)
draw_circle(290, 200, 1, red)
draw_circle(185, 250, 1, yellow)
draw_circle(255, 250, 1, green)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment