//This is a lesson to understand coordinates with lines in processing.
void setup(){
size(600, 600);
}
void draw(){
background (255); //white
//DRAW SQUARE WITH LINES
stroke(0);
line(100, 200, 100, 400);
line(100, 200, 300, 200);
line(300, 200, 300, 400);
line(100, 400, 300, 400);
//Can I draw a circle within the box
ellipse(200, 300, 200, 200);
//create a line to dissect the circle like a cross
line(100, 300, 300, 300);//Across
line(200, 400, 200, 200);//Up-Down
//Do diagonals.
//Cross the circle and square twice, diagonally.
//Have the lines originate and end at the corners of the square.
line(100, 200, 300, 400); //Upper left corner to lower right corner.
line(100, 400, 400, 100); //Lower left corner to Upper right corner.
//Why does the above line(lower left to upper right), go beyond the limits of the square?
//I have tested different coordinates and cannot seem to fix it.
//Any help or hint is highly appreciated, thank you.
//I am not understanding why I am having this issue with coordinates?
}