line() draws a straight line between the two coordinate points given as arguments.
ellipse(X location of center, Y location of center, width of shape, [height of shape])
An ellipse is a circle or oval. By default, an ellipse is drawn out from the center point. (note, the height of the shape is not required to draw an ellipse, but p5 will assume that it will be a perfect circle unless you give it a specific height)
rect(X of top left, Y of top left, width of shape, height of shape)
Rectangles are drawn similarly to the canvas: starting at the top left, and then out by a specified width and height. Having the last two arguments be identical will result in a perfect square.
triangle(X1, Y1, X2, Y2, X3, Y3)
Triangle can be a little difficult. Each pair of numbers is the XY pixel location of a point of the triangle. To move the shape, you will have to move each point individually, and may have to do a little math in order to make everything line up properly.
create the following image using the image and code below as a guide line: