PLGCOL0A(3plplot)
π PLGCOL0A β okay bestie, let's talk color π
So this little icon is a <pink>PLplot API</pink> function (yes, from PLplot), and honestly? She's giving lookup-table realness. Let's get into it.
β¨ NAME β¨
plgcol0a β returns 8-bit RGB values and a PLFLT alpha transparency value for a given color index from cmap0. π¨
β¨ SYNOPSIS β¨
plgcol0a(icol0, r, g, b, alpha)
β¨ DESCRIPTION β¨
Okay so here's the vibe: you hand her a color, she hands you back the receipts. plgcol0a returns <mint>8-bit RGB values (0-255)</mint> and a <purple>PLFLT alpha transparency value (0.0-1.0)</> </purple> for whatever color you asked for from cmap0 (peep the PLplot documentation for the lore on cmap0). β¨
π¨ Heads up bestie: the values come back negative if you give her an invalid color id. That's the warning shot, okay? Don't ignore it. π
Redacted form: plgcola(r, g, b)
Literally she's so famous β this function is used in example 30. π
β¨ ARGUMENTS β¨
icol0(PLINT(3plplot), input) β the index of thecmap0color you want. Like, which one. π―r(PLINT_NC_SCALAR(3plplot), output) β the returned red intensity value, in the range from0to255. πΉg(PLINT_NC_SCALAR(3plplot), output) β the returned green intensity value, in the range from0to255. πb(PLINT_NC_SCALAR(3plplot), output) β the returned blue intensity value, in the range from0to255. π«alpha(PLFLT_NC_SCALAR(3plplot), output) β the returned alpha transparency value, in the range from(0.0-1.0). π«§
β¨ AUTHORS β¨
So many developers have contributed to PLplot over its long history and honestly? Legends, all of them. They're credited at http://plplot.sourceforge.net/credits.php β go give them their flowers. π
β¨ SEE ALSO β¨
The PLplot documentation lives at http://plplot.sourceforge.net/documentation.php. Go read it, iykyk. π
And that's the whole page, no cap. π¦ This masterpiece is brought to you by the <rainbow>PLplot API</rainbow>, dated <lavender>August, 2026</lavender>, and it goes by PLGCOL0A(3plplot). Slay, stay transparent (0.0β1.0 only, obviously), mwah ππ
π¦ where this page comes from
- ubuntu stonking: plplot-doc 5.15.0+dfsg3-4 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms