Copyright | (c) Owen Shepherd 2019 |
---|---|
License | BSD-3-Clause |
Maintainer | 414owen@gmail.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Create art via context free grammar production rules.
Documentation
Change the style applied to all downstream terminal symbols.
A terminal or non-terminal symbol.
NonTerminal (NonEmpty Production) | A non-terminal symbol. |
Mod [Modifier] Symbol | Apply modifications to sub-productions. |
Circle Float | Produce a circle with a radius. |
Poly [Vec] | Produce a polygon by relative points. Starts and ends at (0, 0). |
type Production = (Float, Symbol) Source #
A production rule, including a starting probability of generation, a list of styles to be applied to sub-grammars, and a non-empty list of symbols to produce.