PLGCOLBG(3plplot)

πŸ’… PLGCOLBG πŸ’…

okay so this is a page from the PLplot API manual (that's the manual name, bestie, we're just folding it in here so it doesn't get lonely at the top) 🫢

✨ NAME ✨

plgcolbg β€” it hands you back the background color, which is cmap0[0], as an 8-bit RGB value. that's it, that's the whole job, and it does it flawlessly πŸ‘‘

✨ SYNOPSIS ✨

plgcolbg(r, g, b)

✨ DESCRIPTION ✨

So like… plgcolbg returns the background color, aka cmap0[0], expressed as an 8-bit RGB value. three little numbers, one big vibe 🌈

Redacted form: plgcolbg(r, g, b) β€” yes bestie, same thing, it's just the short version, nothing shady going on πŸ™ˆ

Also! This function shows up in example 31, so if you wanna see it living its best life in the wild, go look there πŸ‘€

πŸŽ€ ARGUMENTS πŸŽ€

  • r (PLINT_NC_SCALAR(3plplot), output) β€” the returned red intensity, and it's a number from 0 to 255. literally a whole 8 bits of red, slay πŸ”₯
  • g (PLINT_NC_SCALAR(3plplot), output) β€” the returned green intensity, also in the range from 0 to 255. green flag behavior fr fr πŸ’š
  • b (PLINT_NC_SCALAR(3plplot), output) β€” the returned blue intensity, range 0 to 255 as well. blue era, we love to see it πŸ’™
ngl, all three of these are output args, so the function is the one filling them in for you β€” you're not passing in your own values, you're receiving gifts 🎁

πŸ‘‘ AUTHORS πŸ‘‘

So many developers contributed to PLplot over its long history and they're all credited at http://plplot.sourceforge.net/credits.php β€” like, the whole friend group showed up for this one, iconic behavior honestly πŸ˜­πŸ’–

πŸ¦‹ SEE ALSO πŸ¦‹

The PLplot documentation, living at http://plplot.sourceforge.net/documentation.php β€” go read it, it's giving main character energy πŸ“šβœ¨


and that's the page!! this beauty is from the PLplot source, dated August, 2026 β€” that's the version/date footer in case you were wondering, and no I did not forget it, I would never πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from