Code Sketch


Sun
By: Nitin Mishra
Category: Art
clear()
setSpeed(fast)
setBackground(cm.radialGradient(5, -5, red, 115, Color(255, 255, 102), false))
val x = Array(10,20,40,60)
setFillColor(Color(255, 0, 0))
setPosition(0, 110)
repeatFor(rangeTo(0,72)) { i =>
    savePosHe()
    forward(x(i%4))
    restorePosHe()
    right()
    forward(10)
    left(85)
}
invisible()