Here’s a example program:
strokeWeight(4);
rect(100,100,200,50);
It draws a rectangle with the upper left corner at 100 pixels down and 100 pixels over, and with a width of 200 pixels and a height of 50 pixels.
IMPORTANT NOTE: If you are using graph paper, the second two parameters (numbers) are how far over and how far down by tens or
boxes on the graph paper.
Draw this picture of a house using rect, line and point like this.
Helpful Links