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