greymap-setpixel!

Synopsis

(greymap-setpixel! greymap x y value)

Parameters

  • greymap
  • x
  • y
  • value : greyvalue in the range from 0 (black) to 255 (white)

Description

Side Effects

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

Return Value

unspecified (ok)

Example

> (define gm (greymap-create 100 50))
gm
> (greymap-setpixel! gm 99 0 128)
ok
> (greymap-getpixel gm 99 0)
128
>