Demo entry 6350728

moca9

   

Submitted by anonymous on Mar 14, 2017 at 06:27
Language: Python 3. Code size: 238 Bytes.

for y in range(img.size[1]):
    for x in range(img.size[0]):
        if pix[x, y][0] < 90 and pix[x, y][1] < 90 and pix[x, y][2] < 90:
            pix[x, y] = (0, 0, 0, 255)
        else:
            pix[x, y] = (255, 255, 255, 255)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).