-
Notifications
You must be signed in to change notification settings - Fork 0
/
patterns.js
120 lines (119 loc) · 2.78 KB
/
patterns.js
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
const fractalInfo = {
bases: {
line:["DRAW"],
square:["DRAW",90,"DRAW",90,"DRAW",90,"DRAW"],
triangle:["DRAW",120,"DRAW",120,"DRAW"],
hexagon:["DRAW",60,"DRAW",60,"DRAW",60,"DRAW",60,"DRAW",60,"DRAW"]
},
options: {
line150: {
name:"Minkowski sausage (1.5)",
base:"line",
shape:"sausage150",
maxDepth:6,
},
square150:{
name:"Minkowski square (1.5)",
base:"square",
shape:"sausage150",
maxDepth:5
},
line161: {
name:"Minkowski sausage (1.61)",
base:"line",
shape:"sausage161",
maxDepth:4
},
square161: {
name:"Minkowski square (1.61)",
base:"square",
shape:"sausage161",
maxDepth:4
},
koch: {
name:"Koch curve",
base:"line",
shape:"koch",
maxDepth:9
},
kochSnowflake: {
name:"Koch snowflake",
base:"triangle",
shape:"koch",
maxDepth:9
},
hexKoch: {
name: "Koch curve (hexagon)",
base:"hexagon",
shape:"koch",
maxDepth:9
},
quadKoch: {
name: "Koch curve (quadratic)",
base:"line",
shape:"quadKoch",
maxDepth:8
},
quadKochSquare: {
name: "Koch square (quadratic)",
base:"square",
shape:"quadKoch",
maxDepth:8
},
un: {
name:"Helmet",
base:"line",
shape:"un",
maxDepth:8
},
maple: {
name:"Mandel",
base:"line",
shape:"maple",
maxDepth:6
},
peano: {
name:"Peano",
base:"line",
shape:"peano",
maxDepth:6
}
},
patterns: {
sausage150: {
dimension:1.5,
scale:4,
shape:["DRAW",90,"DRAW",-90,"DRAW",-90,"DRAW","DRAW",90,"DRAW",90,"DRAW",-90,"DRAW"]
},
sausage161: {
dimension:1.61,
scale:4,
shape:["DRAW",-90,"DRAW","DRAW",90,"DRAW","DRAW",90,"DRAW",90,"DRAW",-90,"DRAW",-90,"DRAW","DRAW",90,"DRAW",90,"DRAW",-90,"DRAW",-90,"DRAW","DRAW",-90,"DRAW","DRAW",90,"DRAW"]
},
koch: {
dimension:0,
scale:3,
shape:["DRAW",-60,"DRAW",120,"DRAW",-60,"DRAW"]
},
quadKoch: {
dimension:0,
scale:3,
shape:["DRAW",-90,"DRAW",90,"DRAW",90,"DRAW",-90,"DRAW"]
},
un: {
dimension:0,
scale:3,
shape:[-90,"DRAW",90,"FLIP","DRAW","FLIP","DRAW","FLIP","DRAW","FLIP",90,"DRAW",-90]
},
maple: {
dimension:0,
scale:3,
shape:["DRAW",-120,"DRAW",120,"DRAW",120,"DRAW","DRAW",-120,"DRAW",-120,"DRAW",120,"DRAW","DRAW"]
},
peano: {
dimension:0,
scale:3,
shape:[-90,"DRAW","DRAW",90,"DRAW",90,"DRAW","DRAW",-90,"DRAW",-90,"DRAW","DRAW",90]
}
}};
export default fractalInfo