Skip to content

Instantly share code, notes, and snippets.

@PaulSandoz
Created November 2, 2011 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PaulSandoz/1333743 to your computer and use it in GitHub Desktop.
Save PaulSandoz/1333743 to your computer and use it in GitHub Desktop.
(defn text-mandel [size a b limit]
(let [[w _ ms] (mandelbrot-seqs 1 size a b limit)
[_ _ _ _ m] (first ms)
s (map (fn [[_ _ i]]
(if (zero? i) " " (str (int (* 9 (/ i limit)))))) m)]
(println
(interpose \newline
(map #(apply str %)
(partition w s))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment