Skip to content

A (WIP) Typescript Node Module to generate L-Systems

Notifications You must be signed in to change notification settings

soft-networks/lsystem

Repository files navigation

☘️ LSystem ☘️

A work in progress node module (my very first), that generates L-Systems including all features from Algorithmic Beauty of Plants. More docs, and examples to come :)

Scripts to get going

  • npm run start-lsystem: Runs the lsystem on a basic string, iterates it
  • npm run start-parser: Runs the parser on a variety of inputs, showing outputs from Parser
  • npm run start-grammar: Runs the grammar on a variety of inputs, showing outputs from Nearley
  • npm run test: Runs test with jest.
  • npm watch: Runs typescript (tsc) in watch mode.

TODO

  • Fix Error throwing (introduce error types) across the board
  • Look at type system, be more frugal with type usage, potentially rename axiom
  • Add Comments + JSDoc
  • Publish examples repo, host examples somewhere
  • Fix npmignore (remove it and just do "include" in package.json?)
  • Add Readme
  • Performance
  • Change LSystem example to be interactive (take in input on the command line)
  • LSystem constructor is slow (loops through productions every time), can be faster by using a map

About

A (WIP) Typescript Node Module to generate L-Systems

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published