Sphere#

class Drawing.Sphere#

A solid sphere. Created using Drawing.add_sphere().

Note

The sphere is drawn with an additive material, so a darker color draws it more transparent.

center: Tuple#

Position of the center of the sphere.

Attribute:

Can be read or written

Return type:

Tuple

radius: number#

Radius of the sphere, in meters.

Attribute:

Can be read or written

Return type:

number

reference_frame: SpaceCenter.ReferenceFrame#

Reference frame for the positions of the object.

Attribute:

Can be read or written

Return type:

SpaceCenter.ReferenceFrame

visible: boolean#

Whether the object is visible.

Attribute:

Can be read or written

Return type:

boolean

color: StdLib.ColorRGB#

The color of the object.

Attribute:

Can be read or written

Return type:

StdLib.ColorRGB

material: string#

Material used to render the object. Creates the material from a shader with the given name.

Attribute:

Can be read or written

Return type:

string

remove()#

Remove the object.