Code Sketch


Sunflower
By: Sonal Vaze
Category: Art
cleari()
setSpeed(fast)
setBackground(brown)
 def petals =Picture{
    repeat((100)) {
        left()
        right(130,100)
        right()
        right(130,100)
    }
 }
def inFlower=Picture{
    repeat(100) {
         forward(40)
    hop(-40)
    right(20)  
       }   
}
    


drawCentered(petals.thatsFilledWith(yellow))
draw(inFlower.thatsFilledWith(red))