Skip to main content

Interface: Box3DOptions

Defined in: mobjects/three-d/Cube.ts:175

Options for creating a Box3D

Properties

center?

optional center: Vector3Tuple

Defined in: mobjects/three-d/Cube.ts:183

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


color?

optional color: string

Defined in: mobjects/three-d/Cube.ts:185

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


depth?

optional depth: number

Defined in: mobjects/three-d/Cube.ts:181

Depth (z dimension). Default: 1


height?

optional height: number

Defined in: mobjects/three-d/Cube.ts:179

Height (y dimension). Default: 1


opacity?

optional opacity: number

Defined in: mobjects/three-d/Cube.ts:187

Opacity from 0 to 1. Default: 1


width?

optional width: number

Defined in: mobjects/three-d/Cube.ts:177

Width (x dimension). Default: 1


wireframe?

optional wireframe: boolean

Defined in: mobjects/three-d/Cube.ts:189

Whether to render as wireframe. Default: false