set_colormap


Description:

[ Version ( since = "3.0" ) ]
public bool set_colormap (Object format, uint8[] colormap)

This procedure sets the entries in the specified palette in one go, though they must all be in the same format.

The number of entries depends on the colormap.length size of colormap and the bytes-per-pixel size of format. The procedure will fail if colormap.length is not an exact multiple of the number of bytes per pixel of format.

Parameters:

this

The palette.

format

The desired color format.

colormap

The new colormap values.

num_bytes

The byte-size of colormap.

Returns:

true on success.