buddhabrot!

Synopsis

(buddhabrot! result graymap exposures maxiter)

Parameters

  • result:
  • graymap: An optimization graymap
  • exposures: Number of million exposures
  • maxiter: Maximum number of iterations

Description

This procedure performs the same actions as buddhabrot, but allows multiple exposure cycles to an externally provided result graymap.

Side Effects

The result graymap is modified.

Return Value

The resulting 16 bit graymap is returned.

See Also

Example

> (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: buddhabrot-b-result.png