anymap-ocol-set!

Synopsis

(anymap-ocol-set! anymap ocol-value)

Parameters

  • anymap: Either a bitmap, a greymap, a 16 bit graymap or a colormap
  • ocol-value

Description

The procedures bitmap-ocol-set!, greymap-ocol-set!, graymap-ocol-set! and colormap-ocol-set! are aliases being bound to this primitive procedure for compatibility.

Side Effects

The ocol value of the anymap is set to the supplied value.

Return Value

The new ocol value is returned.

Example

> (define bitmap (bitmap-create 100 100))
bitmap
> bitmap
#<bitmap orow:-1 ocol:-1 xres:-1 yres:-1 h:100 w:100>
> (anymap-ocol-set! bitmap 500)
500
> bitmap
#<bitmap orow:-1 ocol:500 xres:-1 yres:-1 h:100 w:100>