Skip to main content

Interface: SphereOptions

Defined in: mobjects/three-d/Sphere.ts:7

Options for creating a Sphere

Properties

center?

optional center: Vector3Tuple

Defined in: mobjects/three-d/Sphere.ts:11

Center position [x, y, z]. Default: [0, 0, 0]


color?

optional color: string

Defined in: mobjects/three-d/Sphere.ts:13

Color as CSS color string. Default: '#ffffff'


opacity?

optional opacity: number

Defined in: mobjects/three-d/Sphere.ts:15

Opacity from 0 to 1. Default: 1


radius?

optional radius: number

Defined in: mobjects/three-d/Sphere.ts:9

Radius of the sphere. Default: 1


resolution?

optional resolution: number

Defined in: mobjects/three-d/Sphere.ts:17

Number of segments for sphere geometry. Default: 32


wireframe?

optional wireframe: boolean

Defined in: mobjects/three-d/Sphere.ts:19

Whether to render as wireframe. Default: false