Code Sketch


flower
By: Kanchan Samant
clear()
setSpeed(fast)
setBackground(black)
zoom(1.2)
setPosition(0, 100)
val c = cm.radialGradient(20, 70, cm.gold, 80, Color(255, 255, 255), false)
setPenColor(c)
setFillColor(c)
repeat(7) {
    forward(20)
    right(45, 50)
    right()
    right(45, 50)
    forward(20)
    right(180)
    right(360.0 / 7)
}
setPosition(15, 35)
setFillColor(noColor)
setPenThickness(3)
setHeading(270)
right(20, 100)
left(20, 100)
repeat(2) {
    right(90, 50)
    right()
}
repeat(2) {
    left(90, 50)
    left()
}
left(20,100)
right(20,100)
right(20,100)