colormap-randomize!

Synopsis

(colormap-randomize! colormap)

Parameters

  • colormap

Description

Side Effects

Each pixel of the supplied colormap is replaced by a random value.

Return Value

The resulting colormap is returned.

Example

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

The resulting colormap displays as follows:

colormap-randomize.png