colormap-setpixel!

Synopsis

(colormap-setpixel! colormap x y RGBvalue)

Parameters

  • colormap
  • x
  • y
  • RGBvalue

Description

Side Effects

The pixel at the position is set to the specified RGB value.

Return Value

unspecified (ok)

Example

> (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
>