11-21-2022, 10:10 AM
Good news! visionmercer found a couple more versions from SpecBas source!
Code: (Select All)
' A loose translation of bubble_universe2
' https://github.com/ZXDunny/SpecBAS-Demos/blob/master/Graphics/bubble_universe2
Const w = 480
Const m = 200
Const r = _Pi * 2
Dim x, y, t, i, j, u
Screen _NewImage(w, w, 32)
Do
Cls
For i = 0 To m
For j = 0 To m
u = Sin(i + y) + Sin(i + x)
y = Cos(i + y) + Cos(i + x)
x = u + t
PSet (u * m / 2 + w / 2, y * m / 2 + w / 2.3), _RGB(j, i, 127)
Next
Next
t = t + .1 ' << try .01
_Display
_Limit 30
Loop
Code: (Select All)
' A loose translation of bubble_universe3
' https://github.com/ZXDunny/SpecBAS-Demos/blob/master/Graphics/bubble_universe3
const w = 480, n = 200
dim x
dim y
dim t: t = 9
screen _newimage(480, 480, 32)
do
cls
for i=0 to n
for j=0 to n
u=sin(i+y) + sin(j/(n*_pi)+x)
v=cos(i+y) + cos(j/(n*_pi)+x)
x = u + t
y = v + t
pset (u*100+w/2, v*100+w/2),_rgb(i,j,99)
next j,i
t = t + .1 ' I am running .01
_display
_limit 30
loop
b = b + ...