from math import * from kandinsky import fill_rect from random import random COUL = (205,175,140),(96,55,40),(180,5,20),(90,3,20) for v in range(128,0,-1): for u in range(320): x, y, c = (u-120)/120, (v-110)/160, 0 y = (v-110)/160 z = 1/sqrt(x*x+y*y+1) x *= z y *= z if y < 0: p = (y+4)/y c = (int(x*p)+int(z*p)) >> 1 & 1 fill_rect(u,222-v,2,1,COUL[c]) for u in range(160): c = 2 + (random()<.3) fill_rect(2*u,0,10,int(120+abs(.4*u-20)),COUL[c])