Code Sketch


SHAPES
By: Kritika Bhandari
Category: Programming
clear()

//pentagon
left
hop(320)
setPenColor(red)
setPenThickness(8)
setFillColor(yellow)
forward(100)
right(72)
forward(100)
right(72)
forward(100)
right(72)
forward(100)
right(72)
forward(100)
right(72)
right(90)

right
hop(100)
setPenColor(brown)
setFillColor(green)
forward(80)
left(60)
forward(80)
left(60)
forward(80)
left(60)
forward(80)
left(60)
forward(80)
left(60)
forward(80)
left(60)
left

right
hop(200)
setPenColor(blue)
setFillColor(pink)
forward(70)
left(51.4)
forward(70)
left(51.4)
forward(70)
left(51.4)
forward(70)
left(51.4)
forward(70)
left(51.4)
forward(70)
left(51.4)
forward(70)
left(51.4)
forward(70)
left
right

hop(120)
setPenColor(green)
setFillColor(brown)
forward(60)
left(45)
forward(60)
left(45)
forward(60)
left(45)
forward(60)
left(45)
forward(60)
left(45)
forward(60)
left(45)
forward(60)
left(45)
forward(60)
left(45)
left

right
hop(120)
setPenColor(yellow)
setFillColor(blue)
forward(150)
left(120)
forward(150)
left(120)
forward(150)
left(120)
left