Why is the line of pixels (0,0) - (n, 0) hidden?

I am using the draw_line command to draw a line from (0,0) to (n, 0) but that line does not show.
The line (0,1) - (n,1) does show.
The first pixel line is hidden. I first thought that this might be under the title bar but I switched to borderless window and that line still does not show.
Note that this is the same situation with x = 0. It isn’t showing but x = 1 is.
This is drawing to the root Node2D scene with transform position (0,0) and scale(1,1).
Do I give up on drawing to x/y = 0?

	draw_line(Vector2(0,0), Vector2(200,0), Color.GREEN)
	draw_line(Vector2(0,0), Vector2(0,200), Color.BLUE)

I feel like I am missing something very basic here.

Found the answer in the docs:

When using draw_line, you should consider the width of the line. When using a width that is an odd size, the position of the start and end points should be shifted by 0.5 to keep the line centered, as shown below.

1 Like