Skip to content

Intermact API Reference / @intermact/core / expandLSystem

Function: expandLSystem() ​

expandLSystem(axiom, rules, iterations, maxLength?): string

Defined in: packages/core/src/pcg/lsystem.ts:40

Expand an L-system axiom under its rules for iterations steps.

Parameters ​

axiom ​

string

rules ​

Readonly<Record<string, string>>

iterations ​

number

maxLength? ​

number = 500000

Returns ​

string

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)