point()

Draws a point in space. This is a high level alternative to using OpenGL calls directly. Size and color are set with glPointSize() glColor4f(), respectively.

point(x, y)
point(x, y, z)
  • x, y, z ... coordinates in space

Relevant examples: shape2D.py , shape3D.py , points.py , curve.py , line.py , ALL

In Context

def onDraw(self):
    point(-1, 0, -0.5)
def onDraw(self):
    glColor4f(1.0, 0.5, 0.5, 1.0)
    glPointSize(2)
    point(-1, 0, -0.5)
def onDrawOrtho(self):
    point(200, 50)
Initiated by Stephan Hechenberger
Thanks to CADRE's 103