graymap-randomize!

Synopsis

(graymap-randomize! graymap)

Parameters

  • graymap

Description

Side Effects

Each pixel of the supplied 16 bit graymap is replaced by a random value.

Return Value

The resulting graymap is returned.

Example

> (define g (graymap-create 1024 768))
g
> (graymap-randomize! g)
#<graymap(16) orow:-1 ocol:-1 xres:-1 yres:-1 w:1024 h:768>
> (graymap-writepng g "graymap-randomize.png")
ok
>

The resulting 16 bit graymap displays as follows:

graymap-randomize.png