Anonymous user
Xiaolin Wu's line algorithm: Difference between revisions
→{{header|Python}}
Line 2,734:
"""
compose_color = lambda bg, fg: int(round(alpha * fg + (1-alpha) * bg))
c = compose_color(img.getpixel(xy), color
img.putpixel(xy, c)
|