CS111 PreLab 4 Answers
Task 2
picture1
overlay(clockwise180(triangle(Color.red)),
triangle(Color.green));
picture2
overlay(clockwise90(triangle(Color.red)),
clockwise270(triangle(Color.blue)));
picture3
above(beside(
overlay(clockwise90(triangle(Color.blue)),
clockwise270(triangle(Color.red))),
overlay(clockwise180(triangle(Color.red)),
triangle(Color.green))),
beside(
overlay(clockwise180(triangle(Color.blue)),
triangle(Color.yellow)),
overlay(clockwise90(triangle(Color.yellow)),
clockwise270(triangle(Color.green)))));
Task 3
picture4
overlay(clockwise90(triangle(Color.blue)),triangle(Color.blue));
picture5
above(fourSame(flipDiagonally(triangle(Color.yellow))),
beside(triangle(Color.green),
above(empty(), flipVertically(triangle(Color.green)))));