gl.Color(red, green, blue[, alpha])
gl.Color()
sets
a new four-valued RGBA color. If the optional alpha argument is omitted, it will be set to 1.0.
Current color values are stored in floating-point format such that the largest representable value maps to 1.0 (full intensity), and 0 maps to 0.0 (zero intensity).
Alternatively, you can also pass a table containing three or four floating-point values specifying the red, green, blue, and alpha values for the color.
The initial value for the current color is (1, 1, 1, 1).
The current color can be updated at any time. In particular, gl.Color()
can be called between a call to
gl.Begin() and the corresponding call to gl.End().
Please consult an OpenGL reference manual for more information.
#GL_CURRENT_COLOR
gl.Get() with argument #GL_RGBA_MODE