for y in range(0, dim, 3): for x in range(0, dim, 4): img.putpixel((x, y), color2) if not (x+1 > dim): img.putpixel((x+1, y), color2) if not (x+2 > dim): img.putpixel((x+2, y), color2) if not ((x+2 > dim) and (y+1 > dim)): img.putpixel((x+2, y+1), color2)
if not (x+1 > dim)
if not (x+1 >= dim)
dim
x + 1
y + 1
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)