-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathribbons.rkt
49 lines (42 loc) · 1.24 KB
/
ribbons.rkt
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#lang s-exp stamps/lang
(define-shape start
(main [h 230 ]
[sat 0.5]
[b 0.1]))
(define-shape main
(branch-a)
(main [r 21 ]
[s 0.98]))
(define-shape branch-a
[1 => (square)
(branch-a [y 0.2 ]
[r 2 ]
[h 0.01 300]
[sat 0.001 0.9]
[b 0.001 1 ]
[s 0.9987 ])]
[.005 => (square)
(branch-b [y 0.2 ]
[r 2 ]
[h 0.01 300]
[sat 0.001 0.9]
[b 0.001 1 ]
[s 0.9987 ])])
(define-shape branch-b
[1 => (square)
(branch-b [y 0.2 ]
[r -2 ]
[h 0.01 300]
[sat 0.001 0.9]
[b 0.001 1 ]
[s 0.9987 ]) ]
[.01 => (square)
(branch-a [y 0.2 ]
[r -2 ]
[h 0.01 300]
[sat 0.001 0.9]
[b 0.001 1 ]
[s 0.9987 ])])
(background '(0 0 0))
(maximum-render-cycles 100000)
(start-shape start)