Skip to main content

Interface: CubeOptions

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

Options for creating a Cube

Properties

center?

optional center: Vector3Tuple

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

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


color?

optional color: string

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

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


opacity?

optional opacity: number

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

Opacity from 0 to 1. Default: 1


sideLength?

optional sideLength: number

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

Side length of the cube. Default: 1


wireframe?

optional wireframe: boolean

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

Whether to render as wireframe. Default: false