(colormap-setpixel! colormap x y RGBvalue)
The pixel at the position is set to the specified RGB value.
unspecified (ok)
> (define cm (colormap-create 100 50))
cm
> (rgb 1 1 1)
65793
> (colormap-setpixel! cm 99 0 (rgb 1 1 1))
ok
> (define gm (colormap->greymap cm))
gm
> (greymap-getpixel gm 99 0)
0
> (define gm (colormap-channel->greymap cm 0))
gm
> (greymap-getpixel gm 99 0)
1
>