Code Sketch
Boat
Category: Art
cleari
setBackgroundH(Color(248, 255, 255), 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 boat = picStack(
Picture{},
shape7.thatsRotated(45).thatsTranslated(0, -50).thatsFilledWith(brown).thatsStrokeColored(brown),
shape6.thatsRotated(225).withFlippedX.thatsTranslated(0, -50).thatsFilledWith(brown).thatsStrokeColored(brown),
shape1.thatsRotated(270).thatsTranslated(-100, 60).thatsStrokeColored(yellow).thatsFilledWith(yellow),
shape1.thatsTranslated(-100, 60).thatsStrokeColored(yellow).thatsFilledWith(Color(255, 198, 89)),
shape3.thatsRotated(45).thatsTranslated(0, 30).thatsFilledWith(purple).thatsStrokeColored(purple),
shape4.thatsRotated(135).thatsTranslated(70, 30).thatsFilledWith(blue).thatsStrokeColored(blue),
shape4.thatsRotated(135).thatsTranslated(141.42, -40).thatsFilledWith(blue).thatsStrokeColored(blue),
)
boat.draw