So let's say I have a variable called
current_color
and the string assigned to current_color is constantly changing.
Additionally I have a cube in PyOpenGl.py
To assign the cube's color I use
glColor3fv((0, 1, 0))
Would there be a way (referencing a color library) to have
glColor3fv((current_color))
and every time that variable updates, it changes the cubes color? To my understanding OpenGL is a state machine so I'd need to redraw the scene, or cube. Would you have any suggestions on how to do that?