/imggen

Primary LanguagePython

imggen

Draws squares thus that for any square_i abs(Red(square_i) - r) + abs(Green(square_i) - g) + abs(Blue(square_i) - b)) <= x. Saves the 800 x 800 image in ans.png. Input:

x, k - the side of each square, r - red component, g - green component, b - blue component. x, k, r, g, b are of integers.