returns a GLTF string of the flower, it uses the params inside genome.
returns a GLTF string of the flower (with normals and emissive textures), it uses the params inside genome.
it drawn the flower from the given genome.
stringified json
flower from the given genome.
it drawns the petal layer from the given genome.(no stem)
stringified json
layer to draw
flower - petal from specified layer
it drawns the petals from the given genome. (no stem)
stringified json
flower petals
the short git commit hash this wasm binary was built from, or "unknown" for a build outside a git checkout.
gets the flower stats.
stringified json
0.0 to 1.0
degrees, same scale as the returned min/maxTemperature
meters above sea level
terrain type id
gets the currents parameters
the semver this wasm binary was built from, e.g. "4.0.0". Same value as this package's own package.json "version".
getVersion() + "+" + getCommitHash(), e.g. "4.0.0+a1b2c3d".
function to load wasm module.
returns a GLTF string of the flower.
GLTF file string
returns a GLTF string of the flower (with normals and emissive textures).
GLTF file string
it makes the petal for the specified layer. (no stem)
flower, only petal in layer
it mutates the given flower genome.
genome from original flower.
flower - the new mutated flower
it makes a child from two flower genomes.
genome for father
genome for mother
flower - child flower
simple wrapper around fe wasm module.
Example