from kandinsky import set_pixel from math import * c = pi / 180 coul = [(85, 67, 72),(212, 245, 245),(147, 183, 190),(140, 154, 158),(116, 117, 120)] def f(x, y): return 255 * cos(x) * sin(y) % 4 for x in range(320): for y in range(222): xr, yr = (x - 160) * c, (y - 111) * c set_pixel(x, y, coul[int(f(xr, yr))])