December 2008
4 posts
ZSH Julia set
I was bored and was messing with my Mandelbrot generator when I thought “why not try a Julia set?”, and why not indeed? It’s a fairly simple change to the Mandelbrot set algorithm.
((columns=COLUMNS-1, lines=LINES))
((colour=0))
if [[ ! $# -eq 2 ]]; then
((ci=1, cr=0))
elif [[ $# -eq 2 ]]; then
((ci=$1, cr=$2))
fi
for ((b=-2.0;b<=2;b+=4.0/lines));do
for...
‘If you had normal ear drums you would need to be kissing like a Dyson...
– BBC NEWS - Can kissing make you go deaf?
ZSH Mandelbrot set generator
Back in 2001 I wrote a ZSH script that generates a Mandelbrot set in a terminal window. I posted it to the ZSH users mailing list and Bart Schaefer helped me optimise and sanitise it a bit. Then I didn’t think any more about it.
Just today, though, I went on a wee search to find it and discovered that it seems to have taken on a miniature life of it’s own on the web, so I figured...