Data update
This commit is contained in:
parent
29a5eea0d4
commit
5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions
20
Task/Plasma-effect/EasyLang/plasma-effect.easy
Normal file
20
Task/Plasma-effect/EasyLang/plasma-effect.easy
Normal 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
|
||||
.
|
||||
Loading…
Add table
Add a link
Reference in a new issue