`plscmap0a`: Set cmap0 colors by 8-bit RGB values and double alpha transparency value
Prev | Chapter 18. The Common API for PLplot | Next

#### `plscmap0a`: Set cmap0 colors by 8-bit RGB values and double alpha transparency value

`plscmap0a (` | r,
| g,
| b,
| alpha,
| ncol0`)`;

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

`r` (`const PLINT *`, input)

  Pointer to array with set of unsigned 8-bit integers (0-255) representing the degree of red in the color.

`g` (`const PLINT *`, input)

  Pointer to array with set of unsigned 8-bit integers (0-255) representing the degree of green in the color.

`b` (`const PLINT *`, input)

  Pointer to array with set of unsigned 8-bit integers (0-255) representing the degree of blue in the color.

`alpha` (`const PLFLT *`, input)

  Pointer to array with set of PLFLT values (0.0 - 1.0) representing the alpha transparency of the color.

`ncol0` (`PLINT`, input)

  Number of items in the ``r``, ``g``, ``b``, and ``alpha`` arrays.

Redacted form: `plscmap0a(r, g, b, alpha)`

This function is used in examples 30.

Prev | Up | Next
`plscmap0`: Set cmap0 colors by 8-bit RGB values | Home | `plscmap0n`: Set number of colors in cmap0