diff options
| -rw-r--r-- | README.md | 46 | 
1 files changed, 18 insertions, 28 deletions
@@ -1,39 +1,29 @@ -# pict-sexp -Draw sexp. +# pict-cons +Draw cons. - +  # INSTALL -``` -raco pkg install https://github.com/tojoqk/pict-sexp.git -``` + +    raco pkg install https://github.com/tojoqk/pict-cons.git  # UPDATE -``` -raco pkg update https://github.com/tojoqk/pict-sexp.git -```` + +    raco pkg update https://github.com/tojoqk/pict-cons.git  # UNINSTALL -``` -raco pkg remove pict-sexp -``` + +    raco pkg remove pict-cons  # USAGE -Save as "pict-fib.png". -``` -#lang racket -(require pict) -(require pict-sexp) -(define pict-fib -  (pict-sexp -   '(define (fib n) -      (cond -        [(= n 0) 0] -        [(= n 1) 1] -        [else -         (+ (fib (- n 1)) -            (fib (- n 2)))])))) +Save as "pict-example.png". -(send (pict->bitmap pict-fib) save-file "pict-fib.png" 'png) -``` +    #lang racket +    (require pict) +    (require pict-cons) +     +    (define pict-example +      (pict-cons '(+ a (* b c)))) +     +    (send (pict->bitmap pict-example) save-file "pict-example.png" 'png)  | 
