feat(demo): add demo-4

This commit is contained in:
2026-09-12 18:52:38 +02:00
parent 66c3ab128f
commit 5215a2e678
3 changed files with 97 additions and 7 deletions
+29
View File
@@ -35,3 +35,32 @@
(color 0.01 0.05 0.15)
(color 0.01 0.05 0.15)
20 0.7))
(set 'mandelbrot-red
(mandelbrot-texture
1800.0
(point2 -0.7489967346191402 -0.06952285766601607)
1000
(color 0.3 0 0)
(color 0.3 0 0)
(color 0.3 0 0)
))
(defun mandel-zoom (n z1 z2)
(let '((n . n)
(z1 . z1)
(z2 . z2))
(lambda (t)
(let '((pct . (/ t (* n 1.0)))
(range . (- z2 z1)))
(mandelbrot-texture
(+ z1 (* pct range))
(point2 -0.7489967346191402 -0.06952285766601607)
1000
(color 0.3 0 0)
(color 0.3 0 0)
(color 0.3 0 0)
)
)))
)