Log In  


Cart #fishes-1 | 2019-05-11 | Embed ▽ | License: CC4-BY-NC-SA
1

r=rnd
function _draw()
srand(1)
clv()
for i=0,32 do
ot = r(16)-8
tf = flr((t()+ot)*16)
op = r()
c = 96+r(7)
sh = r(4)+12
z = r(63)
yb= r(127)
for x=0,48 do
h = sin(x/48)*5+6
X = (x + tf)%128
y = sin(X/96 + op) * sh + yb
line3d(X, y, z, X, y + h, z, c)
end
end
end

Alternative version

Cart #fishes_alt-1 | 2019-05-11 | Embed ▽ | No License
1

r=rnd
function _draw()
srand(1)
clv()
for i=0,32 do
ot = r(16)-8
tf = flr((t()+ot)*16)
op = r()
sh = r(4)+12
z = r(63)
Y= r(127)
for x=0,48 do
X = (x + tf)%128
y = sin(X/96 + op) * sh + Y
line3d(X, y, z, X, y + sin(x/48)*5+6, z, 96+7-(z/9))
end
end
end
1



[Please log in to post a comment]