---
name: "plgcol0"
section: "3plplot"
platform: "linux"
package: "plplot-doc"
version: "5.15.0+dfsg2-15"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/plgcol0"
---

# plgcol0(3plplot)

Returns 8-bit RGB values for given color index from cmap0

## NAME

**plgcol0** - Returns 8-bit RGB values for given color index from cmap0

## SYNOPSIS

**plgcol0**(*icol0*, *r*, *g*, *b*)

## DESCRIPTION

Returns 8-bit RGB values (0-255) for given color from cmap0 (see the PLplot documentation).  Values are negative if an invalid color id is given.

Redacted form: **plgcol0(icol0, r, g, b)**

This function is used in example 2.

## ARGUMENTS

- *icol0* (**PLINT**(3plplot), input)

  Index of desired cmap0 color.

- *r* (**PLINT\_NC\_SCALAR**(3plplot), output)

  Returned value of the 8-bit red value.

- *g* (**PLINT\_NC\_SCALAR**(3plplot), output)

  Returned value of the 8-bit green value.

- *b* (**PLINT\_NC\_SCALAR**(3plplot), output)

  Returned value of the 8-bit blue value.

## AUTHORS

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

## SEE ALSO

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