What happens if we tweak numbers a bit and give pi a non zero value?
EDIT: more dramatic color change
Code: (Select All)
Screen 12
pi = 3.1415
n = 200
r = (2 * pi) / 100
x = 0
v = 0
t = 0
sz = 200
s = 0
scrw = 640: scrh = 480
sw = scrw / sz: sh = scrh / sz
offset = scrh / 4.5
Do
Cls
For i = 50 To n
c~& = _RGB32(Int(Rnd * 200) + 55, Int(Rnd * 200) + 55, Int(Rnd * 200) + 55)
For j = 50 To n
u = Sin(i + v) + Sin(r * i + x)
v = Cos(i + v) + Cos(r * i + x)
x = u + t
q = scrw / 2 + u * offset
a = scrh / 2 + v * offset
Circle (q, a), 1, c~&
lastq = q: lasta = a
Next j
Next i
t = t + .001
_Display
_Limit 30
Loop
EDIT: more dramatic color change
b = b + ...