Code Sketch
Duck
Category: Art
cleari
setBackgroundH(Color(14, 122, 255, 225), Color(23, 228, 225))
def shape3 = Picture{
right(135)
forward(70.71)
right(90)
forward(70.71)
right(90)
forward(70.71)
right(90)
forward(70.71)
right(90)
}.thatsStrokeColored(black)
def shape4 = Picture{
right()
forward(100)
left(135)
forward(70.71)
left(90)
forward(70.71)
}.thatsStrokeColored(black)
def shape1 = Picture{
right(135)
forward(141.42)
left(135)
forward(200)
left(135)
forward(141.42)
}.thatsStrokeColored(black)
def shape5 = Picture{
left(45)
forward(70.71)
left(135)
forward(100)
left(135)
forward(70.71)
}.thatsStrokeColored(black)
def shape6 = Picture{
forward(100)
right(135)
forward(70.71)
right(45)
forward(100)
right(135)
forward(70.71)
}.thatsStrokeColored(black)
def shape7 = Picture {
left(45)
forward(141.42)
left(135)
forward(100)
left(90)
forward(100)
}.thatsStrokeColored(black)
def duck = picStack(
Picture{},
shape1.thatsRotated(45).withFlippedX.thatsTranslated(0, -140).thatsFilledWith(white),
shape1.thatsRotated(90).thatsTranslated(-100, -100).thatsFilledWith(white),
shape7.thatsRotated(135).thatsFilledWith(white),
shape3.thatsRotated(90).thatsTranslated(-30, 30).thatsFilledWith(white),
shape4.thatsRotated(90).thatsTranslated(70, -70).thatsFilledWith(white),
shape6.withFlippedX.thatsTranslated(20,80).thatsFilledWith(white),
shape4.thatsRotated(135).thatsTranslated(90, 110).thatsFilledWith(red)
)
duck.draw