Re: Mandelbrot for the terminal

From: Alan Crowe (alan_at_cawtech.freeserve.co.uk)
Date: 07/31/04


Date: 31 Jul 2004 07:52:35 +0100

neo88 asked:

> Very cool. How did you get the ascii characters though? I
> don't see them anywhere in the code. All I see that might
> even have something to do with it is
>
> (princ (code-char c))

Spot the magic numbers 32 and 126

(char-code #\space) => 32
(char-code #\~) => 126

the code commits itself to the ASCII character set.

--
Alan Crowe
Edinburgh
Scotland