Add Lévy C curve
This commit is contained in:
parent
103645595d
commit
1b2defc067
1 changed files with 10 additions and 0 deletions
|
@ -2,6 +2,7 @@ module Examples
|
|||
( -- * Space-filling curves
|
||||
gosper
|
||||
, hilbert
|
||||
, levyC
|
||||
-- * Fractals
|
||||
, koch
|
||||
, kochSnowflake
|
||||
|
@ -33,6 +34,15 @@ hilbert = LSystem
|
|||
10
|
||||
[('F',Forward), ('+',TurnRight), ('-',TurnLeft)]
|
||||
|
||||
-- | Lévy C curve
|
||||
levyC = LSystem
|
||||
"F+-"
|
||||
"F"
|
||||
[('F', "+F--F+")]
|
||||
45
|
||||
10
|
||||
[('F',Forward), ('+',TurnRight), ('-',TurnLeft)]
|
||||
|
||||
-- | Koch curve
|
||||
koch = LSystem
|
||||
"F+-"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue