#include "library.h" const double scale = 0.42; void square(double x, double y, double size) { if (size <= 1) return; const double half = size/2; move_to(x-half, y-half); square(x-half, y-half, size*scale); draw_to(x+half, y-half); square(x+half, y-half, size*scale); draw_to(x+half, y+half); square(x+half, y+half, size*scale); draw_to(x-half, y+half); square(x-half, y+half, size*scale); draw_to(x-half, y-half); move_to(x, y); } void main() { make_window(650, 650); set_pen_width(1); set_pen_color(color::red);