Code Sketch


FLOWER
By: Rajiv Malik
Category: Art
cleari()
setBackground(white)
setSpeed(fast)
def darkBrown = Color(23,21,21)
def darkYellow = Color(226,217,17)

{

drawCentered(petals.thatsFilledWith(darkYellow).thatsRotated(20))
innerFlower.draw

}

def petals = Picture
{
repeat(110)
{
left()
right(130,100)
right()
right(130,100)
}
}


def innerFlower = Picture
{
    repeat(50)
        {
 forward(47)
hop(-47)
right(20)

}
}
.thatsStrokeColored(brown).thatsStrokeSized(5)