Brian Mitchell wrote:
> On Mon, 6 Dec 2004 12:23:06 +0900, Lyndon Samson
> <lyndon.samson / gmail.com> wrote:
> 
>>Is this an example of a Sierpinski Triangle?
> 
> Yes.
> 
> I am working on finding more cool one liners that are short enough for a sig.

actually a four liner...

ruby -rcomplex -e'c,m,w,h=Complex(-0.75,0.136),50,200,100;puts"P6\n"+\
"#{w} #{h}\n255";(0...h).each{|j|(0...w).each{|i|n,z=0,Complex(0.9*i/w,\
0.9*j/h);while n<=m&&(z-c).abs<=2;z=z*z+c;n+=1 end;print [20+n*10,0,\
rand*99].pack("C*")}}'|display

Regards,

   Michael