Skip to content

Commit

Permalink
Mandelbrot fractal to celebrate 0.4.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
mikera authored and mikera committed Aug 30, 2012
1 parent 275518b commit 0ed3b49
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/clojure/clisk/samples/gallery.clj
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@

:colourful-spots
(show (seamless 0.5 (compose vnoise [spots y z t])) 1024 1024)

:mandelbrot
(show (viewport [-2 -1.5] [1 1.5]
(fractal
:init pos
:while (v- 2 (length [x y]))
:update (v+ c [(v- (v* x x) (v* y y)) (v* 2 x y)])
:result (vplasma (v* 0.1 'i))
:bailout-result black
:max-iterations 1000)) 1024 1024)

})

Expand Down

0 comments on commit 0ed3b49

Please sign in to comment.