Code Sketch


Cycle from kojo chinar
By: chinar
Category: Art
cleari()
setBackground(Color(149, 149, 239))
savePosHe()
setSpeed(medium)
setPenColor(black)
setPenThickness(10)
def cycle(){
circle(40)
left()
hop(40)
circle(1)
setPenThickness(2)
setPenColor(green)
repeat(10){
forward(35)
hop(-35)
right(35)}
} //> def cycle(): Unit
cycle()
restorePosHe()
right()
hop(180)
left()
setPenColor(black)
setPenThickness(10)
cycle()
right(10)
setPenColor(orange)
setPenThickness(20)
forward(80)
setPenThickness(5)
setPenColor(red)
savePosHe()
savePosHe()
left(60)
forward(40)
left(120)
setPenColor(black)
forward(10)
right(180)
forward(20)
restorePosHe()
hop(-10)
setPenColor(orange)
right(120)
forward(80)
left(120)
setPenColor(red)
setPenThickness(20)
hop(-10)
forward(20)
restorePosHe()
savePosHe()
hop(10)
right(60)
setPenThickness(5)
setPenColor(orange)
forward(90)
right(60)
right(180)
hop(90)
right(180)
setPenColor(green)
forward(125)
left(60)
hop(-20)
setPenColor(red)
forward(40)
restorePosHe()
right()
hop(-100)