/* A totally different method, where everything is relative. This is a different style of solution. Not necessarily better. Always examine the alternatives and see which works best for you. */ void draw_triangle_2(const double size) { turn_right_by_degrees(60); draw_distance(size); turn_right_by_degrees(120); draw_distance(size); turn_right_by_degrees(120); draw_distance(size); turn_right_by_degrees(60); } void main() { make_window(500,500); set_pen_color(color::red); set_pen_width(3); move_to(100, 150); set_heading_degrees(120); draw_triangle_2(100); move_distance(100); draw_triangle_2(100); move_distance(100); draw_triangle_2(100); move_distance(100); draw_triangle_2(100); move_distance(100); }