1
Graphics / Drawing lines
« on: September 26, 2009, 07:35:40 pm »
The code is for PySFML.
When I draw two lines:
The lines do not start at the same (x,y) coordinate. The second line is draw exactly 1 pixel above the first line. I don't see anywhere in the code that would make this happen. Why aren't the lines being drawn from the same (x,y) coordinate?
When I draw two lines:
Code: [Select]
l1 = sf.Shape.Line(x, y, x + w, x + h, 1.0, color, 0.0, color)
l2 = sf.Shape.Line(x, y, x + w, x - h, 1.0, color, 0.0, color)
The lines do not start at the same (x,y) coordinate. The second line is draw exactly 1 pixel above the first line. I don't see anywhere in the code that would make this happen. Why aren't the lines being drawn from the same (x,y) coordinate?