colormap-getpixel

Synopsis

(colormap-getpixel colormap x y)

Parameters

  • colormap
  • x
  • y

Description

Side Effects

Return Value

The RGB value of the specified pixel is returned.

Example

> (define cm (colormap-create 200 100))
cm
> (rgb 128 16 12)
8392716
> (colormap-setpixel! cm 199 99 (rgb 128 16 12))
ok
> (colormap-getpixel cm 199 99)
8392716
>