Welcome!
Read about the cartesian coordinate system.
Learn about how to set the window size in the Processing reference.
Learn about how to draw a line in the Processing reference.
Check out a list of functions on the Processing website.