| ENTRY | DOWNLOAD | MANUAL | ONGOING | |
sphere()Draws a sphere in space. This is a high level alternative to using OpenGL calls directly. Fill color is set with glColor4f(). >>The class reference elaborates on shading with Lights and Materials.
sphere(x, y, radius)
sphere(x, y, z, radius)
Relevant examples: shape2D.py , shape3D.py , points.py , curve.py , line.py , ALL In Context
def onDraw(self):
sphere(0, 0, 0, 1)
def onDraw(self):
glColor4f(1.0, 0.5, 0.5, 1.0)
sphere(0, 0, 0 1)
def onDrawOrtho(self):
sphere(200, 200, 50)
|
|
|
Initiated by Stephan Hechenberger Thanks to CADRE's 103 |
|