cloneParams()
Deep clone, so presets are never mutated by a caller.
function cloneParams(p: BushParams): BushParams;Defined in: bush/src/params.ts:130
Parameters
| Parameter | Type |
|---|---|
p | BushParams |
Returns
buildRoles()
The bush's role table in voxel-value order, coloured from colors (usually skinFor); a role colors leaves out shows magenta.
generateBush()
Generate a bush: several stems leave the ground together and lean outward (plus satellite clumps for a thicket), branch, carry carved and shaded leaf clumps, thorns, berries or blossom, then anything not connected to the ground is dropped, so the result is one piece. Pure and deterministic in...