Camera SEEMS upside down

So I created a grid on the z x plane, and then drew small lines that showed the positive x, y, and z axis as red, green, and blue respectively. When I set the camera up I made the up values 0, 1, 0, which I’m assuming makes the top of the camera point towards <0,1,0>, which would make the green line representing the y-axis look like its pointing up. However, the green y-axis looks like its pointing down. The obvious fix for this is to have 0, -1, 0 be the up values, but I want to know why what I originally tried didn’t work.

Here’s my code:

void setup()
{
size(1600, 1000, P3D);
perspective(radians(50.0f), width/(float)height, 0.1, 1000);
camera(50, 50, 50,
0, 0, 0,
0, 1, 0);
grid();
}

void draw()
{

}

private void grid()
{
//I commented out the main grid, but left it here because it helps me look at the image

//for(int i = -100; i <= 100; i += 10)
//{
// line(-100, 0, i, 100, 0, i);
//}

//for(int i = -100; i <= 100; i+= 10)
//{
// line(i, 0, -100, i, 0, 100);
//}
stroke(255,0,0);
line(0,0,0,10,0,0);
stroke(0,255,0);
line(0,0,0,0,10,0);
stroke(0,0,255);
line(0,0,0,0,0,10);
}