Code Sketch


duck
By: Uma Mahendra Ekawade
Category: Art
cleari()
setSpeed(fast)

setPenThickness(5)
setPenColor(black)


//head
setFillColor(yellow)
setPosition(-65 , 50)
circle(40)


//body
def body = Picture.ellipse(100, 50).thatsRotated(180).thatsStrokeColored(black).thatsFilledWith(yellow).thatsStrokeSized(5)

def body1 = Picture.ellipse(50, 25).thatsRotated(160).thatsStrokeColored(black).thatsFilledWith(yellow).thatsStrokeSized(5)

body.draw
body1.draw


//eye
setFillColor(black)
setPosition(-100,60)
circle(10)


//beak
setFillColor(red)
left()
hop(48)
forward(30)
left(45)
forward(5)
left(100)
forward(45)
right()

//leg 1
setPenThickness(5)
left(45)
hop(85)
left(85)
hop(120)
right(95)
forward(30)

//leg 2
left()
hop(20)
left()
forward(30)