glutSetColor

sets the color of a colormap entry in the layer of use for the current window.

Signature

glutSetColor( int( cell ) , GLfloat( red ) , GLfloat( green ) , GLfloat( blue ) )-> void
glutSetColor( color , red , green , blue )
glutSetColor( c_int(color), GLfloat(red), GLfloat(green), GLfloat(blue) ) -> None

Parameters

VariablesDescription
cell
Color cell index (starting at zero).
red
Red intensity (clamped between 0.0 and 1.0 inclusive).
green
Green intensity (clamped between 0.0 and 1.0 inclusive).
blue
Blue intensity (clamped between 0.0 and 1.0 inclusive).

See Also

glutGetColor glutCopyColormap glutInitDisplayMode