Thumbnail.

for r for g for b

Description

l = []

for r in range(256):
    for g in range(256):
        for b in range(256):
            if x < w:
                pix[x, y] = (r, g, b)
                x += 1
            else:
                #Don't use this color yet. Creates the diagonal.
                l.append((r, g, b))
                x = 0   
                y += 1

#this is the last row of pixels                
for i in l:
    pix[x, y] = i
    x += 1

Author

allcaps
3 entries

Stats

Date
Colors16,777,216
Pixels16,777,216
Dimensions4,096 × 4,096
Bytes189,748