`plscmap0`: Set cmap0 colors by 8-bit RGB values
Prev | Chapter 18. The Common API for PLplot | Next

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

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

Set cmap0 colors using 8-bit RGB values (see the section called “Color Map0”). This sets the entire color map – only as many colors as specified will be allocated.

`r` (``PLINT_VECTOR``, input)

  A vector containing unsigned 8-bit integers (0-255) representing the degree of red in the color.

`g` (``PLINT_VECTOR``, input)

  A vector containing unsigned 8-bit integers (0-255) representing the degree of green in the color.

`b` (``PLINT_VECTOR``, input)

  A vector containing 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`` vectors.

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

This function is used in examples 2 and 24.

Prev | Up | Next
`plschr`: Set character size | Home | `plscmap0a`: Set cmap0 colors by 8-bit RGB values and PLFLT alpha transparency value