lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, 27 Oct 2010, Mike Pall wrote:

> Tony Finch wrote:
> > On Tue, 26 Oct 2010, Daniel Aquino wrote:
> > > Yea ppm is a simple option.
> >
> > Here's something I wrote over the weekend:
> > http://dotat.at/cgi/git?p=mandelbrot.git;f=mandelbrot.lua;a=blob
> >
> > Works best with LuaJIT :-)
>
> Ok, so I'll throw in the following program from the shootout:
>
> http://shootout.alioth.debian.org/u32/program.php?test=mandelbrot&lang=luajit&id=7

I should note that I was aiming for pretty pictures rather than speed,
hence the faff with logs to get a smooth measure of the potential of
points outside the set, and linear interpolation of colours. There's also
some bits in there to help me target a deep dive into the set: the
co-ordinates at the start are of a deep mini-set that's about 2^-40
across, the next one after the one this video finishes with:

http://www.youtube.com/watch?v=gEw8xpb1aRA

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
HUMBER THAMES DOVER WIGHT PORTLAND: NORTH BACKING WEST OR NORTHWEST, 5 TO 7,
DECREASING 4 OR 5, OCCASIONALLY 6 LATER IN HUMBER AND THAMES. MODERATE OR
ROUGH. RAIN THEN FAIR. GOOD.