graphgif/demo.scm

11 lines
326 B
Scheme
Raw Normal View History

(use-modules (graphgif)
(srfi srfi-9 gnu)
(ice-9 copy-tree))
2024-10-16 13:48:22 -05:00
(define red (create-color 1 0 0))
(define graph1 (generate-web 10 10))
2024-10-22 08:51:33 -05:00
(define graph2 (remove-rect (copy-tree graph1) 10 3 3 4 5))
(assq-set! graph2 0 (set-node-color (assq-ref graph2 0) red))
2024-10-22 09:25:54 -05:00
(write-graphs-to-file (vector graph1 graph2) "graph.gif")