Script that draw waves to the screen, with various parameter to choose how they are rendered
from math import * from kandinsky import * def w(a, l, off=0): t = 0 s = (1/l)*l/a while t < 2*pi: y = round(sin(t-off)*a) dx = t*l/(2*pi) for x in range(0, 320, l): set_pixel(x+round(dx),y+111,(0,0,0)) t += s t = 0 a = 10 l = 50 while True: w(a, l, t) fill_rect(0,111-a,320,a*2+1,(255,255,255)) t += 0.15