Data update

This commit is contained in:
Ingy döt Net 2024-07-13 15:19:22 -07:00
parent 29a5eea0d4
commit 5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions

View file

@ -0,0 +1,20 @@
# lodev.org/cgtutor/plasma.html (last example)
func dist a b c d .
d1 = a - c ; d2 = b - d
return 15 * sqrt (d1 * d1 + d2 * d2)
.
on animate
for y = 0 step 0.4 to 100
for x = 0 step 0.4 to 100
val = sin dist (x + time) y 50 50
val += sin dist x y 25 25
val += sin (dist x (y + time / 7) 75 50 * 1.2)
val += sin dist x y 75 40
col = (val + 4) / 16
color3 col col * 2 1 - col
move x y
rect 0.5 0.5
.
.
time += 1
.