GLUTGETCOLOR(3)

πŸ“¦
version 3.8.0 Β· 2 versions
, in centos-stream 10, centos-stream 9, fedora 43, fedora 44, opensuse-leap 16.0

✨ glutGetColor β€” bestie, it gets the Red, Green, or Blue of an indexed color-mode entry πŸ’…

OpenGLUT Β· colormap


🌸 SYNOPSIS

#include <openglut.h>

GLfloat
glutGetColor(int color, int component);

πŸŽ€ PARAMETERS

  • color β€” the palette entry you wanna fetch, like which lil slot in the color drawer we're peeking at πŸ‘€
  • component β€” whether you want Red, Green, or Blue. pick your fighter πŸ’–

πŸ¦‹ DESCRIPTION

Okay so, this one lets you grab individual color-map entries when you're in a GLUT_INDEX type of display. very "vintage index mode" of it, honestly. ✨

And it respects the current layer setting, which is the polite thing to do. periodt.

The component you pass in can be any of these three icons:

  • GLUT_RED
  • GLUT_GREEN
  • GLUT_BLUE

πŸ’€ BUGS

Unimplemented. not me finding out it literally does not work 😭 no cap, it's just. not there. don't come for me, come for the source code πŸ’€

πŸ‘‘ SEE ALSO


anyway bestie that's the whole page 🫢 it was giving short and sweet. go read the other two, they're the main characters of this little colormap friend group 🌈

signed off from the UNDATED era, courtesy of UNTITLED() β€” yeah the version and date are lowkey mysterious, we don't know her πŸ’…βœ¨