Intermact API Reference / @intermact/core / CA2DSpec
Interface: CA2DSpec
Defined in: packages/core/src/pcg/cellular-automaton.ts:36
Spec for a 2D life-like cellular automaton.
Properties
cellSize?
readonlyoptionalcellSize?:number
Defined in: packages/core/src/pcg/cellular-automaton.ts:46
Cell size in world units (default 0.1).
height
readonlyheight:number
Defined in: packages/core/src/pcg/cellular-automaton.ts:39
init?
readonlyoptionalinit?: readonlynumber[] | {density:number; }
Defined in: packages/core/src/pcg/cellular-automaton.ts:43
Initial grid: explicit cells (row-major) or random fill ratio (needs rng).
kind
readonlykind:"2d"
Defined in: packages/core/src/pcg/cellular-automaton.ts:37
origin?
readonlyoptionalorigin?:AbsXY
Defined in: packages/core/src/pcg/cellular-automaton.ts:47
rng?
readonlyoptionalrng?:Rng
Defined in: packages/core/src/pcg/cellular-automaton.ts:44
steps
readonlysteps:number
Defined in: packages/core/src/pcg/cellular-automaton.ts:41
Number of evolution steps applied before rendering.
style?
readonlyoptionalstyle?:ObjectStyle
Defined in: packages/core/src/pcg/cellular-automaton.ts:48
width
readonlywidth:number
Defined in: packages/core/src/pcg/cellular-automaton.ts:38