I´ll paste two codes that I see that should do the same and they doesnt:
One:
void setup(){
background (255);
size(width, length, P3D);
translate (width/2,length/2);
}
int width = 800;
int length = 800;
void draw(){
line (0,0,100,100);
noLoop();
}
The other:
void setup(){
background (255);
size(width, length, P3D);
}
int width = 800;
int length = 800;
void draw(){
translate (width/2,length/2);
line (0,0,100,100);
noLoop();
}