plscmap0: Set color map0 colors by 8-bit RGB values

The PLplot Plotting Library: Programmer's Reference Manual
Prev | Chapter 17. The Common API for PLplot | Next

### `plscmap0`: Set color map0 colors by 8-bit RGB values

`plscmap0` (r, g, b, ncol0);

Set color map0 colors using 8-bit RGB values (see the Section called Color Map0 in Chapter 3). This sets the entire color map – only as many colors as specified will be allocated.

`r` (`PLINT *`, input) Pointer to array with set of unsigned 8-bit integers (0-255) representing the degree of red in the color. `g` (`PLINT *`, input) Pointer to array with set of unsigned 8-bit integers (0-255) representing the degree of green in the color. `b` (`PLINT *`, input) Pointer to array with set of unsigned 8-bit integers (0-255) representing the degree of blue in the color. `ncol0` (`PLINT`, input) Number of items in the ``r``, ``g``, and ``b`` arrays.

Redacted form: `plscmap0(r, g, b, ncol0)`

This function is used in examples 2,24.

Prev | Home | Next
`plschr`: Set character size | Up | `plscmap0n`: Set number of colors in color map0