Well the language is called "processing" and it appears to be a simplistic form of other programming languages out there like c++ or java. From what I can see here of the reference material you are writing it correctly, but remember that each of those lines you wrote are called "functions" and they are not variables. You give it data called parameters which tell the function what to do. In this case draw a line.
The first two parameters are the X and Y coordinates of one point of the line (the beginning) and the third/fourth parameters are the X and Y of second point. Think of it like on a cartesian plane... you know the whole graph paper sort of grid with a X and Y axis.
So your two function calls are going to draw two separate lines. If you want the lines to meet or intersect you are just going to have to do so. As the example on the reference pages you gave me shows, you could essentially make a box like...
CODE
line(30, 20, 85, 20); <-- Here is the line for the top
line(85, 20, 85, 75); <-- Here is the line for the right side
line(85, 75, 30, 75); <-- Here is the line for the bottom
line(30, 75, 30, 20); <-- Here is the line for the left side
Now if you take a look at the four function calls you will notice that many of the coordinates for point 2 (parameters 3 and 4) are the starting point (parameters 1 and 2) of the next function call. This means that one line is starting where the last line left off.
Now if you are having trouble understanding this or trying to do something with one function, perhaps you can show us what you mean with an example of what you want done and how you are trying to do it.
This post has been edited by Martyr2: 20 Apr, 2008 - 05:52 PM