createSphere

Syntax

createSphere(Radius:length) → any

The method createSphere creates a sphere in the scene window.

Parameter

The parameter Radius of data type length sets its radius of the sphere.

Return Value

The return value has the data type any and specifies the created graphic, compare the method _3D.getGraphic.

Example

var Sphere := _3D.getGraphic("deco").createSphere(2)
Sphere.MaterialActive := true
Sphere.MaterialDiffuseColor := makeRGBValue(255,0,0)

Related Topics

Sphere

Detailed Access To Graphics

_3D.getGraphic