win I am just starting with some 3D graphics experiments using python and openGL but I am already struggling trying to change the color of a grid, because I want a black grid on a white background. I simply copied the pyqtgraph example GLSurfacePlot.py and changed the line
g = gl.GLGridItem ()
to any of these, but none changed the color:
g = gl.GLGridItem (size = QtGui.QVector3D(10,10,1), color = (0.0, 0.0, 0.0, 1.0) )
g = gl.GLGridItem (size = QtGui.QVector3D(10,10,1), color = (1, 1, 0, 1) )
g = gl.GLGridItem (size = QtGui.QVector3D(10,10,1), color = 'k')
g = gl.GLGridItem (size = QtGui.QVector3D(10,10,1), color = pg.glColor((0.0, 0.0, 0.0, 1.0)) )
color = QtGui.QColor("b")
g = gl.GLGridItem (size = QtGui.QVector3D(10,10,1), color = color)
What am I doing wrong? I have win 10, python 3.7, pygtgraph 0.10.0, PyopenGL 3.1.5, PyQt5 5.11.3
thanks for any help
Martin