Signature
glColor(
*
args
)
glColor*f* -- convenience function to dispatch on argument type dispatches to glColor3f, glColor2f, glColor4f, glColor3f, glColor2f, glColor4f depending on the arguments passed...
Parameters
Variables | Description |
---|---|
red, green, blue |
Specify new red, green, and blue values for the current color.
|
alpha |
Specifies a new alpha value for the current color.
Included only in the four-argument
glColor4
commands.
|
Sample Code References
The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.
glColor
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/OpenGLComponent.py
Lines: 458, 470
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Examples/Checkers/CheckersBoard.py
Lines: 45, 47
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Examples/Checkers/CheckersPiece.py
Lines: 52, 54, 57
{LGPL or GPL or MPL} Kamaelia
Sketches/THF/Packages/Kamaelia/Community/THF/Kamaelia/UI/OpenGL/OpenGLComponent.py
Lines: 458, 470
{LGPL or GPL or MPL} Kamaelia
Sketches/THF/Packages/Examples/Checkers/CheckersBoard.py
Lines: 45, 47
{LGPL or GPL or MPL} Kamaelia
Sketches/THF/Packages/Examples/Checkers/CheckersPiece.py
Lines: 52, 54, 57
{LGPL or GPL or MPL} Kamaelia
Code/Python/Kamaelia/Kamaelia/UI/OpenGL/OpenGLComponent.py
Lines: 461, 473
{LGPL or GPL or MPL} Kamaelia
Code/Python/Kamaelia/Examples/SoC2006/THF/MiniExamples/OpenGLComponent.py
Lines: 33, 45
{LGPL or GPL or MPL} Kamaelia
Code/Python/Kamaelia/Examples/SoC2006/THF/Checkers/CheckersBoard.py
Lines: 45, 47
{LGPL or GPL or MPL} Kamaelia
Code/Python/Kamaelia/Examples/SoC2006/THF/Checkers/CheckersPiece.py
Lines: 52, 54, 57
glColor3d
glColor3dv
glColor3f
OpenGLContext
tests/nehe5.py
Lines: 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 77, 82, 87, 92, 97, 102
OpenGL-Demo
PyOpenGL-Demo/NeHe/lesson5.py
Lines: 98, 100, 102, 105, 107, 109, 112, 114, 116, 120, 122, 124, 135, 141, 147, 153, 159, 165
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Sketches/playground/Display3D.py
Lines: 537
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Sketches/playground/PygameWrapperPlane.py
Lines: 79
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/OpenGLDisplay.py
Lines: 848
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Examples/simplecube/simplecube.py
Lines: 49, 55, 61, 67, 73, 79
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Examples/simplecube/simplecube_controlled.py
Lines: 110, 116, 122, 128, 134, 140
{LGPL or GPL or MPL} Kamaelia
Sketches/THF/simplecube/simplecube_controlled.py
Lines: 110, 116, 122, 128, 134, 140
{LGPL or GPL or MPL} Kamaelia
Sketches/THF/Packages/Kamaelia/Community/THF/Kamaelia/UI/OpenGL/OpenGLDisplay.py
Lines: 847
glColor3fv
glColor3ub
glColor4f
pyBzEdit
pyBzEdit.py
Lines: 448, 450, 455, 457, 463, 534, 536, 538, 541, 543, 545, 547, 556, 565, 574, 583, 585, 609, 615, 634...
{LGPL} PyMT
pymt/graphx/draw.py
Lines: 361, 364, 367, 370, 473, 475, 477, 487, 497, 507, 539, 541, 543, 545
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Sketches/Object3D.py
Lines: 127, 133, 139, 145, 151, 157
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Sketches/Scrollbar3D.py
Lines: 173, 181, 198, 206, 228, 240
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Sketches/SimpleCube.py
Lines: 143, 149, 155, 161, 167, 173
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Sketches/playground/ProgressBar.py
Lines: 66, 103
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Sketches/playground/SkyGrassBackground.py
Lines: 48, 53
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Sketches/playground/SimpleCube.py
Lines: 52, 58, 64, 70, 76, 82
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/ProgressBar.py
Lines: 111, 142
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/PygameWrapper.py
Lines: 160
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/ArrowButton.py
Lines: 71, 90
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/SkyGrassBackground.py
Lines: 66, 71
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/SimpleButton.py
Lines: 108, 130
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/SimpleCube.py
Lines: 74, 81, 88, 95, 102, 109
{LGPL or GPL or MPL} Kamaelia
Sketches/THF/3D/playground/SimpleCube.py
Lines: 52, 58, 64, 70, 76, 82
{LGPL or GPL or MPL} Kamaelia
Sketches/THF/Packages/Kamaelia/Community/THF/Kamaelia/UI/OpenGL/Label.py
Lines: 121
{LGPL or GPL or MPL} Kamaelia
Sketches/THF/Packages/Kamaelia/Community/THF/Kamaelia/UI/OpenGL/ProgressBar.py
Lines: 111, 142
{LGPL or GPL or MPL} Kamaelia
Sketches/THF/Packages/Kamaelia/Community/THF/Kamaelia/UI/OpenGL/PygameWrapper.py
Lines: 160
{LGPL or GPL or MPL} Kamaelia
Sketches/THF/Packages/Kamaelia/Community/THF/Kamaelia/UI/OpenGL/ArrowButton.py
Lines: 71, 90
{LGPL or GPL or MPL} Kamaelia
Sketches/THF/Packages/Kamaelia/Community/THF/Kamaelia/UI/OpenGL/SkyGrassBackground.py
Lines: 66, 71
{LGPL or GPL or MPL} Kamaelia
Sketches/THF/Packages/Kamaelia/Community/THF/Kamaelia/UI/OpenGL/SimpleButton.py
Lines: 108, 130
{LGPL or GPL or MPL} Kamaelia
Sketches/THF/Packages/Kamaelia/Community/THF/Kamaelia/UI/OpenGL/SimpleCube.py
Lines: 74, 81, 88, 95, 102, 109
{LGPL or GPL or MPL} Kamaelia
Sketches/THF/Packages/Kamaelia/Community/THF/Kamaelia/UI/OpenGL/Button.py
Lines: 146
{LGPL or GPL or MPL} Kamaelia
Code/Python/Kamaelia/Kamaelia/UI/OpenGL/ProgressBar.py
Lines: 111, 142
{LGPL or GPL or MPL} Kamaelia
Code/Python/Kamaelia/Kamaelia/UI/OpenGL/SkyGrassBackground.py
Lines: 66, 71
{LGPL or GPL or MPL} Kamaelia
Code/Python/Kamaelia/Kamaelia/UI/OpenGL/SimpleButton.py
Lines: 108, 130
{LGPL or GPL or MPL} Kamaelia
Code/Python/Kamaelia/Kamaelia/UI/OpenGL/SimpleCube.py
Lines: 74, 81, 88, 95, 102, 109
glColor4ub
glColor4ubv