Anonymous user
Xiaolin Wu's line algorithm: Difference between revisions
Bugfix
(Bugfix) |
|||
Line 2,729:
def putpixel(img, xy, color, alpha=1):
"""▼
Use alpha for blending. alpha=1 means a completely opaque foreground.
"""
c =
img.putpixel(xy, c)
Line 2,763 ⟶ 2,762:
return px
xstart = draw_endpoint(
xend = draw_endpoint(
for x in range(xstart, xend):
|