greymap-randomize!

Synopsis

(greymap-randomize! greymap)

Parameters

  • greymap

Description

Side Effects

Each pixel of the supplied 8 bit greymap is replaced by a random value.

Return Value

The resulting greymap is returned.

Example

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

The resulting 8 bit greymap displays as follows:

greymap-randomize.png