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 :)
-
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.
- [ ] 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