ENTRY | DOWNLOAD | MANUAL | ONGOING | |
circle()Draws a circle in space. This is a high level alternative to using OpenGL calls directly. Line width and color are set with glLineWidth() glColor4f(), respectively.
circle(x, y, radius)
circle(x, y, z, radius)
Relevant examples: shape2D.py , shape3D.py , points.py , curve.py , line.py , ALL In Contextdef onDraw(self): circle(0, 0, 0, 1) def onDraw(self): glColor4f(1.0, 0.5, 0.5, 1.0) glLineWidth(2) circle(0, 0, 0, 1) def onDrawOrtho(self): circle(200, 200, 100) |
|
Initiated by Stephan Hechenberger Thanks to CADRE's 103 |