Skip to main content

Interface: SpringMobjectOptions

Defined in: src/mobjects/geometry/Spring.ts:6

Options for creating a Spring.

Properties​

coils?​

optional coils: number

Defined in: src/mobjects/geometry/Spring.ts:12

Number of coils. One coil has two peaks. Default: 8


color?​

optional color: string

Defined in: src/mobjects/geometry/Spring.ts:18

Stroke color. Default: WHITE


end?​

optional end: Vector3Tuple

Defined in: src/mobjects/geometry/Spring.ts:10

End point. Default: [3, 0, 0]


leadLength?​

optional leadLength: number

Defined in: src/mobjects/geometry/Spring.ts:16

Length of the straight lead at each end. Default: 0.25


start?​

optional start: Vector3Tuple

Defined in: src/mobjects/geometry/Spring.ts:8

Start point. Default: [0, 0, 0]


strokeWidth?​

optional strokeWidth: number

Defined in: src/mobjects/geometry/Spring.ts:20

Stroke width. Default: 3


width?​

optional width: number

Defined in: src/mobjects/geometry/Spring.ts:14

Full peak to peak width of the coil. Default: 0.3