Code Sketch
A man sitting on horse
Category: Math
// Square (Head)
def Shape1 = Picture {
.thats Stroke Coloured (Black)
.thats filled with (Yellow)
.thats Rotated(45)
.with flipped X
.with flipped Y
}
Shape1.draw(300, 100)
// Small Triangle (Neck)
def Shape2 = Picture {
.thats Stroke Coloured (Black)
.thats filled with (Orange)
.thats Rotated(0)
.with flipped X
.with flipped Y
}
Shape2.draw(300, 170)
// Big Triangle (Body - Green)
def Shape3 = Picture {
.thats Stroke Coloured (Black)
.thats filled with (Green)
.thats Rotated(180)
.with flipped X
.with flipped Y
}
Shape3.draw(260, 220)
// Big Triangle (Body - Blue)
def Shape4 = Picture {
.thats Stroke Coloured (Black)
.thats filled with (SkyBlue)
.thats Rotated(90)
.with flipped X
.with flipped Y
}
Shape4.draw(340, 220)
// Small Triangle (Tail - Red)
def Shape5 = Picture {
.thats Stroke Coloured (Black)
.thats filled with (Red)
.thats Rotated(270)
.with flipped X
.with flipped Y
}
Shape5.draw(340, 300)
// Small Triangle (Beak - White)
def Shape6 = Picture {
.thats Stroke Coloured (Black)
.thats filled with (White)
.thats Rotated(0)
.with flipped X
.with flipped Y
}
Shape6.draw(400, 200)
// Parallelogram (Wing - Purple)
def Shape7 = Picture {
.thats Stroke Coloured (Black)
.thats filled with (Purple)
.thats Rotated(180)
.with flipped X
.with flipped Y
}
Shape7.draw(210, 240)