Anonymous user
Xiaolin Wu's line algorithm: Difference between revisions
→{{header|Python}}
(self bugfix of bugfix) |
|||
Line 2,733:
Use alpha for blending. alpha=1 means a completely opaque foreground.
"""
compose_color = lambda bg, fg: int(
c = compose_color(img.getpixel(xy), color, alpha)
img.putpixel(xy, c)
|