electronstudio / raylib-python-cffi

Python CFFI bindings for Raylib
http://electronstudio.github.io/raylib-python-cffi
Eclipse Public License 2.0
142 stars 29 forks source link

Coordinate origin for line drawing is offseted. #132

Open 2ant opened 1 week ago

2ant commented 1 week ago

The origin for lines is "offset" by one. I have to draw at 1 for the line to show in the first pixel on screen(0).

this works: 
draw_line(1, 0, 0, 450, RED)
draw_line(0,1,800, 0,RED)

This doesn't:
draw_line(0, 0, 0, 450, RED)
draw_line(0,0,800, 0,RED)
electronstudio commented 1 week ago

This sounds like an issue with Raylib. Raylib-Python-CFFI is just a binding to Raylib. It doesn’t change how Raylib works. So you would have to report it to Raylib.