Code Sketch
Boat
cleari
showAxes()
showGrid()
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 tangram = picStack(
Picture {},
shape1 .thatsFilledWith(Color(255, 170, 40))
.withFlippedX ,
shape1.thatsFilledWith(Color(255, 207, 70, 210))
.withFlippedX
.thatsRotated(-45)
.thatsTranslated(-99, -40) ,
shape3 .thatsFilledWith(Color(111, 255, 255)),
shape4
.thatsTranslated(-100, -100)
.thatsFilledWith(Color(89, 194, 117)),
shape6
.thatsRotated(45)
.thatsTranslated(-101, -170)
.thatsFilledWith(Color(51, 102, 0)),
//
//
shape7 .thatsTranslated(-41,-100)
.thatsRotated(45)
.thatsFilledWith(Color(255, 0, 0)),
//
shape4 .thatsRotated(45)
.withFlippedY
.thatsTranslated(-100,172)
.thatsFilledWith(Color(153, 255, 102)),
//
//
)
tangram.draw