Skip to main content

Interface: ToInstancesOptions

Defined in: src/mobjects/three-d/scatter.ts:312

Options for toInstances.

Properties​

alignToNormal?​

optional alignToNormal: boolean

Defined in: src/mobjects/three-d/scatter.ts:318

Turn each instance so its local +Y follows the surface normal. Default: true


colors?​

optional colors: string[]

Defined in: src/mobjects/three-d/scatter.ts:316

Per-instance colors, picked at random. Default: none (material color)


scale?​

optional scale: number | [number, number]

Defined in: src/mobjects/three-d/scatter.ts:314

Uniform scale, or a [min, max] range drawn per instance. Default: 1


seed?​

optional seed: number

Defined in: src/mobjects/three-d/scatter.ts:322

Seed for scale, color and spin. Default: 1


spin?​

optional spin: boolean

Defined in: src/mobjects/three-d/scatter.ts:320

Random spin about the normal (or a random orientation for volume points). Default: true