Code Sketch


Tangram Fish
By: Clinton J. Fernandes
Category: Art
//CLINTON CODE
cleari()
showAxes()
setSpeed(fast)

//triangle 1
setPenColor(red)
setFillColor(red)
left()
forward(100)
right(130)
forward(155)
right(140)
forward(118)

//triangle 2
setPenColor(green)
setFillColor(green)
hop(1)
forward(120)
right(140)
forward(157)
right(130)
forward(100)
hop(1)
left()

//triangle 3
setPenColor(Color(51, 255, 255))
setFillColor(Color(51, 255, 255))
hop(30)
forward(50)
right(130)
forward(78)
right(140)
forward(58)
left(180)
hop(1)

//square
setPenColor(Color(255, 51, 255))
setFillColor(Color(255, 51, 255))
forward(57)
right()
forward(60)
right()
forward(60)
right()
forward(60)
right()
forward(2)
hop(60)
right()
hop(60)
right()
hop(61)
left()

//triangle 4
setPenColor(Color(255, 255, 0))
setFillColor(Color(255, 255, 0))
forward(50)
left(130)
forward(78)
left(140)
forward(58)
right(180)
hop(55)

//
setPenColor(orange)
setFillColor(orange)
right(40)
forward(78)
left(130)
forward(50)
left(43)
forward(83)
left(137)
forward(62)
left(180)
hop(60)

//triangle 5
setPenColor(Color(0, 255, 204))
setFillColor(Color(0, 255, 204))
right(50)
forward(75)
right(130)
forward(107)
right(136)
forward(85)
left(45)
hop(55)
left()
hop(30)
left(210)
right(30)