-
Notifications
You must be signed in to change notification settings - Fork 0
/
2.49.scm
35 lines (32 loc) · 2.24 KB
/
2.49.scm
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
(define painter-a
(segments->painter (list (make-segment (make-vect 0 0) (make-vect 1 0))
(make-segment (make-vect 0 0) (make-vect 0 1))
(make-segment (make-vect 1 0) (make-vect 1 1))
(make-segment (make-vect 0 1) (make-vect 1 1)))))
(define painter-b
(segments->painter (list (make-segment (make-vect 0 0) (make-vect 1 1))
(make-segment (make-vect 1 0) (make-vect 0 1)))))
(define painter-c
(segments->painter (list (make-segment (make-vect 0.5 0) (make-vect 0 0.5))
(make-segment (make-vect 0.5 0) (make-vect 1 0.5))
(make-segment (make-vect 0 0.5) (make-vect 0.5 1))
(make-segment (make-vect 1 0.5) (make-vect 0.5 1)))))
(define wave
(segments->painter (list (make-segment (make-vect 0.25 0) (make-vect 0.33 0.5))
(make-segment (make-vect 0.33 0.5) (make-vect 0.25 0.55))
(make-segment (make-vect 0.25 0.55) (make-vect 0.15 0.45))
(make-segment (make-vect 0.15 0.45) (make-vect 0 0.65))
(make-segment (make-vect 0 0.85) (make-vect 0.15 0.60))
(make-segment (make-vect 0.15 0.60) (make-vect 0.25 0.65))
(make-segment (make-vect 0.25 0.65) (make-vect 0.40 0.65))
(make-segment (make-vect 0.40 0.65) (make-vect 0.35 0.85))
(make-segment (make-vect 0.35 0.85) (make-vect 0.40 1))
(make-segment (make-vect 0.60 1) (make-vect 0.65 0.85))
(make-segment (make-vect 0.65 0.85) (make-vect 0.60 0.65))
(make-segment (make-vect 0.60 0.65) (make-vect 0.75 0.65))
(make-segment (make-vect 0.75 0.65) (make-vect 1 0.40))
(make-segment (make-vect 1 0.20) (make-vect 0.63 0.45))
(make-segment (make-vect 0.63 0.45) (make-vect 0.75 0))
(make-segment (make-vect 0.60 0) (make-vect 0.5 0.20))
(make-segment (make-vect 0.5 0.20) (make-vect 0.40 0))
)))