graphgif/demo.scm

14 lines
320 B
Scheme
Raw Normal View History

(use-modules (graphgif)
(srfi srfi-9 gnu)
2024-10-23 09:13:50 -05:00
(ice-9 copy-tree)
(d-))
2024-10-16 13:48:22 -05:00
(define red (create-color 1 0 0))
(define graph1 (generate-web 10 10))
2024-10-23 09:13:50 -05:00
(define graph2
(~> (copy-tree graph1)
(remove-rect 10 3 3 4 5)
(remove-rect 10 3 3 6 4)))
(write-graphs-to-file (vector graph1 graph2) "graph.webp")