(buddhabrot! result graymap exposures maxiter)
This procedure performs the same actions as buddhabrot, but allows multiple exposure cycles to an externally provided result graymap.
The result graymap is modified.
The resulting 16 bit graymap is returned.
> (define g (graymap-create 2000 2000))
g
> (define p (graymap-copy g))
p
> (graymap-invert! p)
#<graymap(16) orow:-1 ocol:-1 xres:-1 yres:-1 w:2000 h:2000>
> (buddhabrot! g p 20 200)
#<graymap(16) orow:-1 ocol:-1 xres:-1 yres:-1 w:2000 h:2000>
> (graymap-maximum g)
230
> (graymap-minimum g)
0
> (buddhabrot! g p 20 200)
#<graymap(16) orow:-1 ocol:-1 xres:-1 yres:-1 w:2000 h:2000>
> (graymap-minimum g)
2
> (graymap-maximum g)
442
> (graymap-equalize! g)
#<graymap(16) orow:-1 ocol:-1 xres:-1 yres:-1 w:2000 h:2000>
> (graymap-maximum g)
65535
> (graymap-writepng g "buddhabrot-b-result.png")
ok
>
The resulting PNG file displays as follows: