#include "library.h" void main() { make_window(500, 500); // This design is better and more flexible. First I do // whatever preparation this particular triangle requires: // selecting the colour, starting position, and orientation set_pen_color(color::blue); set_pen_width(5); move_to(50, 450); set_heading_degrees(90); // Then these next six instructions draw a triangle in a // very general way. I could use them over and over again // (perhaps just changing the 100 to something else) to // get a triangle at any position and with any orientation // I want draw_distance(100); turn_left_by_degrees(120); draw_distance(100); turn_left_by_degrees(120); draw_distance(100); turn_left_by_degrees(120); }