/* drawSquare_v1.pde Created by Justin Hsia Drawing a square using lines and variables */ int x = 50; // x-position of square int y = 50; // y-position of square int len = 200; // side length of square size(500,500); // set drawing canvas size strokeWeight(5); // make lines thicker line(x, y, x, y+len); // left vertical line line(x, y, x+len,y ); // top horizontal line line(x, y+len,x+len,y+len); // bottom horizontal line line(x+len,y, x+len,y+len); // right vertical line