aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 02b9116904d33a9de46173f4f799e0921372e272 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# pict-cons
Draw cons.

![example1.png](https://files.tojo.tokyo/pict-cons/example1.png)

# INSTALL

    raco pkg install https://github.com/tojoqk/pict-cons.git

# UPDATE

    raco pkg update https://github.com/tojoqk/pict-cons.git

# UNINSTALL

    raco pkg remove pict-cons

# USAGE

Save as "pict-example.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)