xxxxxxxxxx
17
function setup() {
createCanvas(400, 400);
// Arguments for rect 1
// e.g. rect(topRightX, topRightY, bottomLeftX, bottomLeftY);
rect(topRightX,topRightY,bottomLeftX,bottomLeftY);
// Arguments for rect 2
rect(x,y,w,h);
// Come up with as many as you can think of!
rect(topLeftX, topLeftY, rectWidth, rectHeight);
rect(centerX, centerY, rectWidth, rectHeight);
rect(cornerX, cornerY, oppositeCornerX, oppositeCornerY);
rect(centerX, centerY, rectWidth/2, rectHeight/2);
rect();
rect();
}