-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircles
50 lines (47 loc) · 772 Bytes
/
circles
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
50
"burst { pushdict
"cy swap def "cx swap def "size swap def
dup
6.28 swap /
"step swap def
dup
{
"cx @ "cy @ dM
dup
"step @ *
dup
cos "size @ * swap sin "size @ * dl
1 -
dup
} while
drop
popdict
} subprog def
15 50 100 rand 0.5 - 20 * + 100 rand 0.5 - 20 * + "burst @ call
15 50 130 rand 0.5 - 20 * + 130 rand 0.5 - 20 * + "burst @ call
15 50 130 rand 0.5 - 20 * + 100 rand 0.5 - 20 * + "burst @ call
15 50 100 rand 0.5 - 20 * + 130 rand 0.5 - 20 * + "burst @ call
6 6 dup {
dup
dup
rot
swap
{
"y swap def swap "x swap def
"x @ "y @ + 3 +
50
"x @ 30 * 250 + "y @ 30 * 50 +
"burst @ call
"x @ swap "y @
1 -
dup
} while
drop
swap
1 -
dup
rot
swap
} while
drop
path
stop