Code Sketch
Camel
Category: Art
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 {},
//CAMEL
shape4.thatsFilledWith(red).withFlippedY,
shape5.thatsFilledWith(brown).withFlippedX.thatsTranslated(50, -50),
shape6.thatsFilledWith(brown).thatsTranslated(50, -150),
shape1.thatsFilledWith(brown).thatsRotated(180).thatsTranslated(200, -200),
shape1.thatsFilledWith(brown).withFlippedX.thatsRotated(45).thatsTranslated(141.42+150.0, -150),
shape3.thatsFilledWith(brown).thatsTranslated(150, -50),
shape7.thatsFilledWith(brown).thatsRotated(-135).thatsTranslated(150, -150)
)
tangram.draw