from kandinsky import set_pixel from math import * def f(c): return 255*(sqrt((85*sin(2.1*c)+160-x)**2+(85*cos(2.1*c)+111-y)**2)/137+(x*2+y%2*3)%4/4<1.6) for y in range(223): for x in range(320): set_pixel(x,222-y,(f(2),f(1),f(0)))
Create, edit, and import your Python scripts
from kandinsky import set_pixel from math import * def f(c): return 255*(sqrt((85*sin(2.1*c)+160-x)**2+(85*cos(2.1*c)+111-y)**2)/137+(x*2+y%2*3)%4/4<1.6) for y in range(223): for x in range(320): set_pixel(x,222-y,(f(2),f(1),f(0)))