0 Members and 1 Guest are viewing this topic.
open window 640,512e=30d=6*e+(e/4)s=.25bar=640dim x(bar),y(bar),h(bar)dim r(bar),g(bar),b(bar)for a=1 to bar x(a)=a y(a)=400 h(a)=sin(a/e)*50 r(a)=int(ran(256)) g(a)=int(ran(256)) b(a)=int(ran(256))next arepeat setdrawbuf vm vm=1-vm setdispbuf vm clear window e=e+s if e<25 or e>35 s=-s b=b+1 if b>d b=1 for a=1 to bar h(a)=sin((a+b)/e)*50 setrgb 1,r(a),g(a),b(a) line x(a),h(a)+(y(a)-200) to x(a),h(a)+(y(a)-100) next auntil (1=0)