Code Sketch


polygons
By: Swati Shyam Nayak
Category: Art
clear()
setSpeed(fast)
setPenThickness(5)
showAxes()
setBackground(blue)
right(30)
setFillColor(yellow)
repeat(3) {
    forward(100)
    right(120)
}
left(30)
setPosition(180, 170)
left(18)
setFillColor(green)
repeat(5) {
    forward(100)
    right(72)
}
right(18)
setPosition(-300, 130)
left(30)
setFillColor(white)
repeat(6) {
    forward(100)
    right(60)
}
right(30)
setPosition(180, -140)
setPenColor(white)
setFillColor(purple)
repeat(4) {
    forward(100)
    right()
}