DOKK / manpages / debian 12 / plplot-doc / plscmap0a.3plplot.en
PLSCMAP0A(3plplot) PLplot API PLSCMAP0A(3plplot)

plscmap0a - Set cmap0 colors by 8-bit RGB values and PLFLT alpha transparency value

plscmap0a(r, g, b, alpha, ncol0)

Set cmap0 colors using 8-bit RGB values (see the PLplot documentation) and PLFLT alpha transparency value. This sets the entire color map -- only as many colors as specified will be allocated.

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

This function is used in examples 30.

PLINT_VECTOR(3plplot), input)
A vector containing unsigned 8-bit integers (0-255) representing the degree of red in the color.
PLINT_VECTOR(3plplot), input)
A vector containing unsigned 8-bit integers (0-255) representing the degree of green in the color.
PLINT_VECTOR(3plplot), input)
A vector containing unsigned 8-bit integers (0-255) representing the degree of blue in the color.
PLFLT_VECTOR(3plplot), input)
A vector containing values (0.0-1.0) representing the alpha transparency of the color.
PLINT(3plplot), input)
Number of items in the r, g, b, and alpha vectors.

Many developers (who are credited at http://plplot.org/credits.php) have contributed to PLplot over its long history.

PLplot documentation at http://plplot.org/documentation.php.

April, 2023