glutGetColor man page

glutGetColor ā€” Gets an indexed color-mode entry's Red, Green, or Blue value.

Library

OpenGLUT - colormap

Synopsis

#include <openglut.h>

GLfloat
glutGetColor(int color, int component);

Parameters

color

The palette entry to fetch.

component

Whether to fetch Red, Green, or Blue.

Description

Allows you to get individual color-map entries in a

GLUT_INDEX

type of display. Respects the current layer setting.

component

may be any of:

-

GLUT_RED

-

GLUT_GREEN

-

GLUT_BLUE

Bugs

Unimplemented.

See Also

glutSetColor(3) glutCopyColorMap(3)

Referenced By

glutCopyColormap(3), glutSetColor(3).

August 9, 2018