Not sure what this was
This commit is contained in:
parent
a7909e1a7c
commit
afa99bad4a
18
graphgif.scm
18
graphgif.scm
@ -24,6 +24,24 @@
|
|||||||
((10 . 40) (0 2 4) ,white)
|
((10 . 40) (0 2 4) ,white)
|
||||||
((40 . 40) (1 2 3) ,white)))
|
((40 . 40) (1 2 3) ,white)))
|
||||||
|
|
||||||
|
(define-syntax-rule
|
||||||
|
(for x n stmt ...)
|
||||||
|
(let loop ([x 0]
|
||||||
|
[lst '()])
|
||||||
|
(if (< x n)
|
||||||
|
(loop (1+ x)
|
||||||
|
(cons lst (stmt i)))
|
||||||
|
lst)))
|
||||||
|
|
||||||
|
(define large-web
|
||||||
|
(let ([lst '()])
|
||||||
|
(do (i (1+ i))
|
||||||
|
((> i 10))
|
||||||
|
(do (j (1+ j))
|
||||||
|
((> j 10))
|
||||||
|
(set! lst (cons `((,i . ,j)
|
||||||
|
,(map ))))))))
|
||||||
|
|
||||||
(define (edge-painter cr graph)
|
(define (edge-painter cr graph)
|
||||||
(lambda (node)
|
(lambda (node)
|
||||||
(cairo-set-source cr black)
|
(cairo-set-source cr black)
|
||||||
|
Loading…
Reference in New Issue
Block a user