From: Josh Date: 2004-12-09T08:57:29+09:00 Subject: Re: Ruby 2.0 Michael Neumann writes: > 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 Wow, this is great. :) Josh