Xiaolin Wu's line algorithm: Difference between revisions

Content added Content deleted
(Bugfix)
(self bugfix of bugfix)
Line 2,762: Line 2,762:
return px
return px


xstart = draw_endpoint(p1) + 1
xstart = draw_endpoint(p(*p1)) + 1
xend = draw_endpoint(p2)
xend = draw_endpoint(p(*p2))


for x in range(xstart, xend):
for x in range(xstart, xend):