Skip to content

Commit

Permalink
Fixes README code blocks indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
FdelMazo committed Aug 2, 2020
1 parent 310c849 commit 6d9511a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ After our aristids, we want to define the production rules. This rules are the o
```lisp
; We wrap every rule in a LISP list, to use as an argument later
(defparameter dragon-rules
(list (defrule X -> (X RIGHT Y F RIGHT))
(defrule Y -> (LEFT F X LEFT Y))))
(list (defrule X -> (X RIGHT Y F RIGHT))
(defrule Y -> (LEFT F X LEFT Y))))
```

5. `make-fractal`
Expand All @@ -78,8 +78,8 @@ We want to call `make-fractal` with all of this attributes.

```lisp
(defparameter dragon (make-fractal :name "dragon"
:rules dragon-rules
:axiom '(F X)))
:rules dragon-rules
:axiom '(F X)))
```

6. `draw`
Expand Down Expand Up @@ -155,15 +155,15 @@ So I hear you want a fractal plant which has some branches in white and some in
(defaristid RIGHT :angle -25)
(defparameter freaky-fractal-rules
(list (defrule F -> (F G) :prob 0.45)
(defrule G -> (F F) )
(defrule X -> (F RIGHT [ [ X ] LEFT X ] LEFT F [ LEFT F X ] RIGHT X))))
(list (defrule F -> (F G) :prob 0.45)
(defrule G -> (F F) )
(defrule X -> (F RIGHT [ [ X ] LEFT X ] LEFT F [ LEFT F X ] RIGHT X))))
(defparameter axiom '(LEFT LEFT LEFT LEFT LEFT LEFT LEFT LEFT X))
(defparameter fractal (make-fractal :name "freaky-fractal-plant"
:rules freaky-fractal-rules
:axiom axiom))
:rules freaky-fractal-rules
:axiom axiom))
(draw tree-fractal 6)
```
Expand All @@ -185,8 +185,8 @@ Add `:color "rainbow"` to your aristid to give it more groove
(defparameter axiom '(LEFT Y F))
(defparameter fractal (make-fractal :name "freaky-quadratic"
:rules (list rule-1 rule-2)
:axiom axiom))
:rules (list rule-1 rule-2)
:axiom axiom))
(draw fractal 3)
```
Expand Down

0 comments on commit 6d9511a

Please sign in to comment.