An open API service indexing awesome lists of open source software.

https://github.com/spaxe/elm-lsystem

Implementation of L-Systems in Elm
https://github.com/spaxe/elm-lsystem

elm generative l-system package svg turtle-graphics

Last synced: 5 months ago
JSON representation

Implementation of L-Systems in Elm

Awesome Lists containing this project

README

          

# elm-LSystem

Implementation of L-Systems in Elm. Given a set of states and a ruleset:

type State
= A
| B

rule : LSystem.Rule State
rule state =
case state of
A ->
[ A, B ]

B ->
[ A ]

We can generate a new state based on these:

`[A]` => `[A, B]`

`[A, B]` => `[A, B, A]`

`[A, B, A]` => `[A, B, A, A, B]`

# Install

elm install Spaxe/elm-lsystem

# Documentation

See the documentation on elm docs at http://package.elm-lang.org/packages/Spaxe/elm-lsystem/latest/LSystem