Code Sketch
boat - Leann D John
Category: Art
clear()
setSpeed(fast)
showAxes()
showGrid()
setPenThickness(20)
def shape1 = Picture {
right(135)
forward(141.42)
left(135)
forward(200)
left(135)
forward(141.42)
}.thatsStrokeColored(noColor)
def shape2 = Picture {
forward(141.42)
left(135)
forward(200)
left(135)
forward(141.42)
}.thatsStrokeColored(noColor)
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(noColor)
def shape4 = Picture {
right()
forward(100)
left(135)
forward(70.71)
left(90)
forward(70.71)
}.thatsStrokeColored(noColor)
def shape5 = Picture {
left(45)
forward(70.71)
left(135)
forward(100)
left(135)
forward(70.71)
}.thatsStrokeColored(noColor)
def shape6 = Picture {
forward(100)
right(135)
forward(70.71)
right(45)
forward(100)
right(135)
forward(70.71)
}.thatsStrokeColored(noColor)
def shape7 = Picture {
left(45)
forward(141.42)
left(135)
forward(100)
left(90)
forward(100)
}.thatsStrokeColored(noColor)
def boat = picStack(
Picture {},
shape1.thatsRotated(180).thatsTranslated(100,50)
.thatsFilledWith(orange),
shape2.thatsFilledWith(yellow).thatsTranslated(0,10),
shape4.thatsFilledWith(blue).thatsTranslated(0,-50),
shape3.thatsFilledWith(green).thatsTranslated(100,50),
shape5.thatsFilledWith(brown).thatsTranslated(50,235)
.thatsScaled(0.8),
shape6.thatsFilledWith(Color(0, 204, 51)).thatsRotated(45)
.thatsTranslated(-55,-120),
shape2.thatsFilledWith(purple).thatsScaled(0.75)
.thatsRotated(-45)
.thatsTranslated(20,-125)
)
boat
.draw