Share your repls and programming experiences

← Back to all posts
More Circles
RiccardoCataldi (0)

import turtle
ninja = turtle.Turtle()
ninja.speed(0)
ninja.shape("circle")
ninja.pensize(0.1)

for i in range(180):
ninja.forward(100)
ninja.right(30)
ninja.circle(20)
ninja.left(60)
ninja.circle(50)
ninja.right(30)

ninja.penup()
ninja.setposition(0, 0)
ninja.pendown()

ninja.right(2)

ninja.penup()
ninja.setposition(200, 200)
ninja.pendown()

for i in range(180):
ninja.forward(100)
ninja.right(30)
ninja.circle(20)
ninja.left(60)
ninja.circle(50)
ninja.right(30)

ninja.penup()
ninja.setposition(200,200)
ninja.pendown()

ninja.right(2)

ninja.penup()
ninja.setposition(-200,-200)
ninja.pendown()

for i in range(180):
ninja.forward(100)
ninja.right(30)
ninja.circle(20)
ninja.left(60)
ninja.circle(50)
ninja.right(30)

ninja.penup()
ninja.setposition(-200,-200)
ninja.pendown()

ninja.right(2)

ninja.penup()
ninja.setposition(200,-200)
ninja.pendown()

for i in range(180):
ninja.forward(100)
ninja.right(30)
ninja.circle(20)
ninja.left(60)
ninja.circle(50)
ninja.right(30)

ninja.penup()
ninja.setposition(200,-200)
ninja.pendown()

ninja.right(2)

ninja.penup()
ninja.setposition(-200,200)
ninja.pendown()

for i in range(180):
ninja.forward(100)
ninja.right(30)
ninja.circle(20)
ninja.left(60)
ninja.circle(50)
ninja.right(30)

ninja.penup()
ninja.setposition(-200,200)
ninja.pendown()

ninja.right(2)