#include "library.h" /* I want to draw an equilateral triangle. This design is not very well thought out. It can only draw a triangle of a particular size, at a particular position, and with a particular orientation. Because of the trig calculation it would take some effort to change any of those things. */ void main() { const double pi = acos(-1.0); // the best way to get an accurate pi make_window(500, 500); set_pen_color(color::blue); set_pen_width(5); move_to(50, 450); set_heading_degrees(90); draw_to(150, 450); draw_to(100.0, 450 - 100 * sin(60.0 * pi / 180)); draw_to(50, 450); }