OOOOIIIIIIIIOOOO commited on
Commit
4226072
·
verified ·
1 Parent(s): f6b7791

​ ​

Browse files
.gitattributes CHANGED
@@ -103,3 +103,4 @@
103
  🧿/⏺️/🝱/ꓨИꟼ.𒋲.⚪ᗱᗴᙏᗱᗴ옷ᑐᑕᔓᔕ⚪ᔓᔕ✻ᴥⓄᗯᗝꖴᙁⓄᔓᔕ⊚ⵘ✺ᔓᔕᑎИNᗱᗴᕤᕦᴥᗱᗴߦ人옷⚪◌⚪◌⚪◌⚪◌⚪◌⚪◌⚪옷人ߦᗱᗴᴥᕤᕦᗱᗴИNᑎᔓᔕ✺ⵘ⊚ᔓᔕⓄᙁꖴᗝᗯⓄᴥ✻ᔓᔕ⚪ᔓᔕᑐᑕ옷ᗱᗴᙏᗱᗴ⚪.𒋲.PNG filter=lfs diff=lfs merge=lfs -text
104
  𑁍/⁜𑁍⁜/ꓨИꟼ.፨ꔹ፨.⅃MX.⁜𑁍⁜.XML.፨ꔹ፨.PNG filter=lfs diff=lfs merge=lfs -text
105
  𑁍/⁜𑁍⁜/ꓨИꟼ.፨ꔹ፨.⠿𑗋⠿.⅃MX.⁜𑁍⁜.XML.⠿𑗋⠿.፨ꔹ፨.PNG filter=lfs diff=lfs merge=lfs -text
 
 
103
  🧿/⏺️/🝱/ꓨИꟼ.𒋲.⚪ᗱᗴᙏᗱᗴ옷ᑐᑕᔓᔕ⚪ᔓᔕ✻ᴥⓄᗯᗝꖴᙁⓄᔓᔕ⊚ⵘ✺ᔓᔕᑎИNᗱᗴᕤᕦᴥᗱᗴߦ人옷⚪◌⚪◌⚪◌⚪◌⚪◌⚪◌⚪옷人ߦᗱᗴᴥᕤᕦᗱᗴИNᑎᔓᔕ✺ⵘ⊚ᔓᔕⓄᙁꖴᗝᗯⓄᴥ✻ᔓᔕ⚪ᔓᔕᑐᑕ옷ᗱᗴᙏᗱᗴ⚪.𒋲.PNG filter=lfs diff=lfs merge=lfs -text
104
  𑁍/⁜𑁍⁜/ꓨИꟼ.፨ꔹ፨.⅃MX.⁜𑁍⁜.XML.፨ꔹ፨.PNG filter=lfs diff=lfs merge=lfs -text
105
  𑁍/⁜𑁍⁜/ꓨИꟼ.፨ꔹ፨.⠿𑗋⠿.⅃MX.⁜𑁍⁜.XML.⠿𑗋⠿.፨ꔹ፨.PNG filter=lfs diff=lfs merge=lfs -text
106
+ 𑁍/⁜𑁍⁜/ꓨИꟼ.፨ꔹ፨.⁘.⅃MX..⁜𑁍⁜..XML.⁘.፨ꔹ፨.PNG filter=lfs diff=lfs merge=lfs -text
𑁍/⁜𑁍⁜/TXT.⅃MX..⁜𑁍⁜..XML.TXT ADDED
@@ -0,0 +1,302 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ comment:
2
+
3
+ trappedPoint.Index is the base circle index: 0 (center), 1-N (in ring)
4
+ trappedPoint.Delta is the level: 0 - Steps-1
5
+
6
+ See the paper:
7
+ "Evolution of Math into Art via Mobius Transformations"
8
+ by Anne M. Burns, Department of Mathematics,
9
+ Long Island University.
10
+ http://myweb.cwpost.liu.edu/aburns/
11
+
12
+ Also, see pages 88-89 in the book:
13
+ "Indra's Pearls, The Vision of Felix Klein"
14
+ by David Mumford, Caroline Series, David Wright.
15
+ http://klein.math.okstate.edu/IndrasPearls/
16
+
17
+ global:
18
+
19
+ Complex ShowCenter[] = LC1,LC2,LC3,LC4,LC5,LC6,LC7,LC8,LC9,LC10,LC11,LC12,LC13,LC14,LC15,LC16
20
+ Complex ShowRing[] = LR1,LR2,LR3,LR4,LR5,LR6,LR7,LR8,LR9,LR10,LR11,LR12,LR13,LR14,LR15,LR16
21
+ AbsV = Sqrt(AbsU^2 - 1)
22
+ u = AbsU * Cis(DegreeToRadian(ArgU))
23
+ v = AbsV * Cis(DegreeToRadian(ArgV))
24
+ Mobius UnitCircleGroup = Mobius(u, v, Conj(v), Conj(u))
25
+
26
+ totalGen = 1 + N + 32
27
+ Mobius m[totalGen]
28
+ '
29
+ ' Given N, find radius R such that N circles with radius R can be
30
+ ' placed along the inside of the unit circle, each tangent to the
31
+ ' unit circle and each of its two adjacent neighbors.
32
+ '
33
+ r = 1/(1+1/Sin(Math.PI/N))
34
+
35
+ step = 2*Math.PI/N
36
+ ang = IIf(Shift, step/2, 0)
37
+ '
38
+ ' Center generator (index 0)
39
+ '
40
+ m[0] = Mobius(1-2*r, 0, 0, 1)
41
+ '
42
+ ' Ring generators (indices 1..N)
43
+ '
44
+ for (i = 1, i <= N, i += 1) {
45
+ rotate = Cis(ang)
46
+ m[i] = Mobius.Multiply( \
47
+ Mobius(r*rotate, (1-r)*rotate, 0, 1), \
48
+ UnitCircleGroup \
49
+ )
50
+ ang += step
51
+ }
52
+ '
53
+ ' Custom generators
54
+ '
55
+ m[N+1]=Mobius(0.08578644*2,Complex( 0.29289322*2, 0.29289322*2),0,1)
56
+ m[N+2]=Mobius(0.08578644*2,Complex(-0.29289322*2,-0.29289322*2),0,1)
57
+ m[N+3]=Mobius(0.08578644*2,Complex( 0.29289322*2,-0.29289322*2),0,1)
58
+ m[N+4]=Mobius(0.08578644*2,Complex(-0.29289322*2, 0.29289322*2),0,1)
59
+
60
+ m[N+5]=Mobius(0.02240775*2,Complex(0.21638838*2,0.21638838*2), 0, 1)
61
+ m[N+6]=Mobius(0.02240775*2,Complex(-0.21638838*2,0.21638838*2), 0, 1)
62
+ m[N+7]=Mobius(0.02240775*2,Complex(-0.21638838*2,-0.21638838*2), 0, 1)
63
+ m[N+8]=Mobius(0.02240775*2,Complex(0.21638838*2,-0.21638838*2), 0, 1)
64
+
65
+ m[N+9]=Mobius(0.04142136*2,Complex(0.40000000*2,0.22426407*2), 0, 1)
66
+ m[N+10]=Mobius(0.04142136*2,Complex(0.22426407*2,0.40000000*2), 0, 1)
67
+
68
+ m[N+11]=Mobius(0.04142136*2,Complex(-0.40000000*2,0.22426407*2), 0, 1)
69
+ m[N+12]=Mobius(0.04142136*2,Complex(-0.22426407*2,0.40000000*2), 0, 1)
70
+
71
+ m[N+13]=Mobius(0.04142136*2,Complex(-0.40000000*2,-0.22426407*2), 0, 1)
72
+ m[N+14]=Mobius(0.04142136*2,Complex(-0.22426407*2,-0.40000000*2), 0, 1)
73
+
74
+ m[N+15]=Mobius(0.04142136*2,Complex(0.40000000*2,-0.22426407*2), 0, 1)
75
+ m[N+16]=Mobius(0.04142136*2,Complex(0.22426407*2,-0.40000000*2), 0, 1)
76
+
77
+ m[N+17]=Mobius(0.02240775*2,Complex( 0.07650484*2, 0.07650484*2), 0, 1)
78
+ m[N+18]=Mobius(0.02240775*2,Complex(-0.07650484*2, -0.07650484*2), 0, 1)
79
+ m[N+19]=Mobius(0.02240775*2,Complex( 0.07650484*2, -0.07650484*2), 0, 1)
80
+ m[N+20]=Mobius(0.02240775*2,Complex(-0.07650484*2, 0.07650484*2), 0, 1)
81
+
82
+ m[N+21]=Mobius(0.01031867*2,Complex(0.09964592*2, 0.09964592*2), 0, 1)
83
+ m[N+22]=Mobius(0.00851811*2,Complex(0.08225812*2, 0.04611885*2), 0, 1)
84
+ m[N+23]=Mobius(0.00851811*2,Complex(0.04611885*2, 0.08225812*2), 0, 1)
85
+
86
+ m[N+24]=Mobius(0.01031867*2,Complex(-0.09964592*2, 0.09964592*2), 0, 1)
87
+ m[N+25]=Mobius(0.00851811*2,Complex(-0.08225812*2, 0.04611885*2), 0, 1)
88
+ m[N+26]=Mobius(0.00851811*2,Complex(-0.04611885*2, 0.08225812*2), 0, 1)
89
+
90
+ m[N+27]=Mobius(0.01031867*2,Complex(-0.09964592*2, -0.09964592*2), 0, 1)
91
+ m[N+28]=Mobius(0.00851811*2,Complex(-0.08225812*2, -0.04611885*2), 0, 1)
92
+ m[N+29]=Mobius(0.00851811*2,Complex(-0.04611885*2, -0.08225812*2), 0, 1)
93
+
94
+ m[N+30]=Mobius(0.01031867*2,Complex(0.09964592*2, -0.09964592*2), 0, 1)
95
+ m[N+31]=Mobius(0.00851811*2,Complex(0.08225812*2, -0.04611885*2), 0, 1)
96
+ m[N+32]=Mobius(0.00851811*2,Complex(0.04611885*2, -0.08225812*2), 0, 1)
97
+
98
+
99
+ '
100
+ ' Assign Total = the total number of circles.
101
+ '
102
+ const Complex Total = 0
103
+ count = totalGen
104
+
105
+ for (i = 0, i < Steps, i += 1) {
106
+ Total += count
107
+ count *= totalGen
108
+ }
109
+ const Circle c[Total]
110
+ const Complex index[Total]
111
+ const Complex level[Total]
112
+ Circle UnitCircle = CircleC(0, 1)
113
+ '
114
+ ' Generate the base circles (all generators applied to unit circle)
115
+ '
116
+ for (i = 0, i < totalGen, i += 1) {
117
+ c[i] = Mobius.TransformCircle(m[i], UnitCircle)
118
+ index[i] = i
119
+ level[i] = 0
120
+ }
121
+ count = totalGen
122
+ max = 0
123
+ '
124
+ ' Generate the remaining circles by applying all generators iteratively.
125
+ '
126
+ if (Steps > 1) {
127
+ for (i = 1, i < Steps, i += 1) {
128
+ min = max
129
+ max = count
130
+
131
+ for (j = min, j < max, j += 1) {
132
+ for (k = 0, k < totalGen, k += 1) {
133
+ c[count] = Mobius.TransformCircle(m[k], c[j])
134
+ if (c[count].Radius >= RadiusMin) {
135
+ index[count] = index[j]
136
+ level[count] = i
137
+ count += 1
138
+ }
139
+ }
140
+ }
141
+ }
142
+ }
143
+ Total = count
144
+
145
+ CurveTrap.Initialize( \
146
+ Center, DegreeToRadian(Angle), Scale, AlternateAngle, 6, False, LineWidth \
147
+ )
148
+ '
149
+ ' Add the circles to the trap.
150
+ '
151
+ for (i = 0, i < Total, i += 1) {
152
+ lev = level[i]
153
+ idx = index[i]
154
+ if (idx = 0) {
155
+ if (ShowCenter[lev]) {
156
+ CurveTrap.AddCircle2(c[i], Solid, IIf(Solid, lev, 0), idx, lev)
157
+ }
158
+ } else {
159
+ if (ShowRing[lev]) {
160
+ CurveTrap.AddCircle2(c[i], Solid, IIf(Solid, lev, 0), idx, lev)
161
+ }
162
+ }
163
+ }
164
+
165
+ trap:
166
+
167
+ trappedPoint = CurveTrap.Apply(z)
168
+
169
+ properties:
170
+
171
+ divider {
172
+ caption = "General Options"
173
+ }
174
+ option Center {
175
+ type = Complex
176
+ caption = "Center"
177
+ details = "Center of trap"
178
+ default = 0
179
+ }
180
+ option Angle {
181
+ type = Float
182
+ caption = "Angle"
183
+ details = "Angle of rotation"
184
+ default = 0
185
+ range = [-360,360]
186
+ }
187
+ option Scale {
188
+ type = Float
189
+ caption = "Scale"
190
+ details = "Scale factor applied to trap"
191
+ range = (0,)
192
+ default = 2
193
+ }
194
+ option Solid {
195
+ type = Boolean
196
+ caption = "Solid"
197
+ details = "Check to create solid trap"
198
+ default = False
199
+ }
200
+ option AlternateAngle {
201
+ type = Boolean
202
+ caption = "Alternate Angle"
203
+ details = "Use alternate angle calculation"
204
+ default = False
205
+ }
206
+ option LineWidth {
207
+ type = Float
208
+ caption = "Line Width"
209
+ details = "Extent of trap on either side of curve (> 0)"
210
+ range = (0,)
211
+ default = 0.00411522633744855967078189300413
212
+ enabled = ~Solid
213
+ }
214
+ divider {
215
+ caption = "U/V Controls"
216
+ }
217
+ option AbsU {
218
+ type = Float
219
+ caption = "Abs(U)"
220
+ details = "Magnitude of U (1-2)"
221
+ default = 1.1
222
+ range = [1,2]
223
+ }
224
+ option ArgU {
225
+ type = Float
226
+ caption = "Arg(U)"
227
+ details = "Angle of U"
228
+ default = 0
229
+ range = [-360,360]
230
+ }
231
+ option ArgV {
232
+ type = Float
233
+ caption = "Arg(V)"
234
+ details = "Angle of V"
235
+ default = 180
236
+ range = [-360,360]
237
+ }
238
+ divider {
239
+ caption = "Circle Controls"
240
+ }
241
+ option N {
242
+ type = IntegerEnum(3,12)
243
+ caption = "N"
244
+ details = "Number of base circles"
245
+ default = 4
246
+ }
247
+ option Steps {
248
+ type = IntegerEnum(1,16)
249
+ caption = "Steps"
250
+ details = "Number of inversion steps"
251
+ default = 4 ' <-- REDUCED from 8 to 4 to avoid memory crash
252
+ }
253
+ option Shift {
254
+ type = Boolean
255
+ caption = "Shift"
256
+ details = "Check to rotate initial chain by pi/N"
257
+ default = False
258
+ }
259
+ option RadiusMin {
260
+ type = Float
261
+ caption = "Radius Min"
262
+ details = "Minimum acceptable circle radius"
263
+ default = 0
264
+ range = [0,)
265
+ }
266
+ #define ShowLevel(Index)
267
+
268
+ divider {
269
+ caption = "Level #Index# Options"
270
+ }
271
+ option LR#Index# {
272
+ type = Boolean
273
+ caption = "Show Ring"
274
+ details = "Show ring of circles at level #Index#"
275
+ default = True
276
+ enabled = Steps >= #Index#
277
+ }
278
+ option LC#Index# {
279
+ type = Boolean
280
+ caption = "Show Center"
281
+ details = "Show center circle at level #Index#"
282
+ default = True
283
+ enabled = Steps >= #Index#
284
+ }
285
+ #end
286
+
287
+ #include ShowLevel("1")
288
+ #include ShowLevel("2")
289
+ #include ShowLevel("3")
290
+ #include ShowLevel("4")
291
+ #include ShowLevel("5")
292
+ #include ShowLevel("6")
293
+ #include ShowLevel("7")
294
+ #include ShowLevel("8")
295
+ #include ShowLevel("9")
296
+ #include ShowLevel("10")
297
+ #include ShowLevel("11")
298
+ #include ShowLevel("12")
299
+ #include ShowLevel("13")
300
+ #include ShowLevel("14")
301
+ #include ShowLevel("15")
302
+ #include ShowLevel("16")
𑁍/⁜𑁍⁜/⅃MX..⁜𑁍⁜..XML ADDED
@@ -0,0 +1,646 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2
+ <Fractal FilterWeight="Weight3x3" FilterPower="-1" BackgroundVisible="True" BackColor="FFFFFFFF" BorderWidth="0" StripBorder="True" PixelSize="0.00548779710473845" Pixels.X="729" Pixels.Y="729" ClassicProcessing="None" OrbitTrapProcessing="ActivateControllers" ClassicMaxDwell="1" CycleDetectionActive="False" SolidGuessing="None">
3
+ <FractalNotes><![CDATA[]]></FractalNotes>
4
+ <FractalEquation Id="adb85431-618d-491f-b8c5-08555b119814" Title="Pixel" MaxPower="1">
5
+ <Instructions><![CDATA[
6
+ comment:
7
+
8
+ This equation can be used when no equation is necessary.
9
+ By setting the MinDwell/MaxDwell to 1 below, we limit
10
+ the iteration to a single step for best performance.
11
+
12
+ global:
13
+
14
+ FSK.OverrideValue("MinDwell", 1)
15
+ FSK.OverrideValue("MaxDwell", 1)
16
+
17
+ iterate:
18
+
19
+ z = c
20
+ ]]></Instructions>
21
+ <PropertyValueOverrides />
22
+ </FractalEquation>
23
+ <TransformationArray>
24
+ <Transformation Id="7fc4bc2c-b961-4431-b074-277d7b29842b" Title="Identity">
25
+ <Instructions><![CDATA[]]></Instructions>
26
+ <PropertyValueOverrides />
27
+ </Transformation>
28
+ </TransformationArray>
29
+ <TransformationArray>
30
+ <Transformation Id="7fc4bc2c-b961-4431-b074-277d7b29842b" Title="Identity">
31
+ <Instructions><![CDATA[]]></Instructions>
32
+ <PropertyValueOverrides />
33
+ </Transformation>
34
+ </TransformationArray>
35
+ <AlternateValueInfo />
36
+ <AlternateValueInfo />
37
+ <OrbitTrapInfo TrapValueNTrapPreProcessing="CenterReflect" TrapValueNTrapStyle="Flat" TrapValueNSmoothing="Linear" TrapValueNTrapPreProcessing1="CenterReflect" TrapValueNTrapStyle1="Flat" TrapValueNSmoothing1="Linear" TrapValueNTrapPreProcessing2="CenterReflect" TrapValueNTrapStyle2="Flat" TrapValueNSmoothing2="Linear" TrapValueNTrapPreProcessing3="CenterReflect" TrapValueNTrapStyle3="Flat" TrapValueNSmoothing3="Linear">
38
+ <OrbitTrapArray TrapIndexMapping="CombinedIndex" TrapDeltaMapping="TrapDelta" BlendValues="False">
39
+ <OrbitTransform />
40
+ <OrbitTransform />
41
+ <TransformationArray>
42
+ <Transformation Id="7fc4bc2c-b961-4431-b074-277d7b29842b" Title="Identity">
43
+ <Instructions><![CDATA[]]></Instructions>
44
+ <PropertyValueOverrides />
45
+ </Transformation>
46
+ </TransformationArray>
47
+ <TransformationArray>
48
+ <Transformation Id="7fc4bc2c-b961-4431-b074-277d7b29842b" Title="Identity">
49
+ <Instructions><![CDATA[]]></Instructions>
50
+ <PropertyValueOverrides />
51
+ </Transformation>
52
+ </TransformationArray>
53
+ <SymmetryTransformation Id="8301dc6c-2273-4fb9-ada8-2ded2833031f" Title="Identity">
54
+ <Instructions><![CDATA[]]></Instructions>
55
+ <PropertyValueOverrides />
56
+ </SymmetryTransformation>
57
+ <OrbitTrapItem>
58
+ <OrbitTrap Id="098874d7-1e7c-4775-86a4-efefbc2017bf" Title="⁜">
59
+ <Instructions><![CDATA[comment:
60
+
61
+ trappedPoint.Index is the base circle index: 0 (center), 1-N (in ring)
62
+ trappedPoint.Delta is the level: 0 - Steps-1
63
+
64
+ See the paper:
65
+ "Evolution of Math into Art via Mobius Transformations"
66
+ by Anne M. Burns, Department of Mathematics,
67
+ Long Island University.
68
+ http://myweb.cwpost.liu.edu/aburns/
69
+
70
+ Also, see pages 88-89 in the book:
71
+ "Indra's Pearls, The Vision of Felix Klein"
72
+ by David Mumford, Caroline Series, David Wright.
73
+ http://klein.math.okstate.edu/IndrasPearls/
74
+
75
+ global:
76
+
77
+ Complex ShowCenter[] = LC1,LC2,LC3,LC4,LC5,LC6,LC7,LC8,LC9,LC10,LC11,LC12,LC13,LC14,LC15,LC16
78
+ Complex ShowRing[] = LR1,LR2,LR3,LR4,LR5,LR6,LR7,LR8,LR9,LR10,LR11,LR12,LR13,LR14,LR15,LR16
79
+ AbsV = Sqrt(AbsU^2 - 1)
80
+ u = AbsU * Cis(DegreeToRadian(ArgU))
81
+ v = AbsV * Cis(DegreeToRadian(ArgV))
82
+ Mobius UnitCircleGroup = Mobius(u, v, Conj(v), Conj(u))
83
+
84
+ totalGen = 1 + N + 32
85
+ Mobius m[totalGen]
86
+ '
87
+ ' Given N, find radius R such that N circles with radius R can be
88
+ ' placed along the inside of the unit circle, each tangent to the
89
+ ' unit circle and each of its two adjacent neighbors.
90
+ '
91
+ r = 1/(1+1/Sin(Math.PI/N))
92
+
93
+ step = 2*Math.PI/N
94
+ ang = IIf(Shift, step/2, 0)
95
+ '
96
+ ' Center generator (index 0)
97
+ '
98
+ m[0] = Mobius(1-2*r, 0, 0, 1)
99
+ '
100
+ ' Ring generators (indices 1..N)
101
+ '
102
+ for (i = 1, i <= N, i += 1) {
103
+ rotate = Cis(ang)
104
+ m[i] = Mobius.Multiply( \
105
+ Mobius(r*rotate, (1-r)*rotate, 0, 1), \
106
+ UnitCircleGroup \
107
+ )
108
+ ang += step
109
+ }
110
+ '
111
+ ' Custom generators
112
+ '
113
+ m[N+1]=Mobius(0.08578644*2,Complex( 0.29289322*2, 0.29289322*2),0,1)
114
+ m[N+2]=Mobius(0.08578644*2,Complex(-0.29289322*2,-0.29289322*2),0,1)
115
+ m[N+3]=Mobius(0.08578644*2,Complex( 0.29289322*2,-0.29289322*2),0,1)
116
+ m[N+4]=Mobius(0.08578644*2,Complex(-0.29289322*2, 0.29289322*2),0,1)
117
+
118
+ m[N+5]=Mobius(0.02240775*2,Complex(0.21638838*2,0.21638838*2), 0, 1)
119
+ m[N+6]=Mobius(0.02240775*2,Complex(-0.21638838*2,0.21638838*2), 0, 1)
120
+ m[N+7]=Mobius(0.02240775*2,Complex(-0.21638838*2,-0.21638838*2), 0, 1)
121
+ m[N+8]=Mobius(0.02240775*2,Complex(0.21638838*2,-0.21638838*2), 0, 1)
122
+
123
+ m[N+9]=Mobius(0.04142136*2,Complex(0.40000000*2,0.22426407*2), 0, 1)
124
+ m[N+10]=Mobius(0.04142136*2,Complex(0.22426407*2,0.40000000*2), 0, 1)
125
+
126
+ m[N+11]=Mobius(0.04142136*2,Complex(-0.40000000*2,0.22426407*2), 0, 1)
127
+ m[N+12]=Mobius(0.04142136*2,Complex(-0.22426407*2,0.40000000*2), 0, 1)
128
+
129
+ m[N+13]=Mobius(0.04142136*2,Complex(-0.40000000*2,-0.22426407*2), 0, 1)
130
+ m[N+14]=Mobius(0.04142136*2,Complex(-0.22426407*2,-0.40000000*2), 0, 1)
131
+
132
+ m[N+15]=Mobius(0.04142136*2,Complex(0.40000000*2,-0.22426407*2), 0, 1)
133
+ m[N+16]=Mobius(0.04142136*2,Complex(0.22426407*2,-0.40000000*2), 0, 1)
134
+
135
+ m[N+17]=Mobius(0.02240775*2,Complex( 0.07650484*2, 0.07650484*2), 0, 1)
136
+ m[N+18]=Mobius(0.02240775*2,Complex(-0.07650484*2, -0.07650484*2), 0, 1)
137
+ m[N+19]=Mobius(0.02240775*2,Complex( 0.07650484*2, -0.07650484*2), 0, 1)
138
+ m[N+20]=Mobius(0.02240775*2,Complex(-0.07650484*2, 0.07650484*2), 0, 1)
139
+
140
+ m[N+21]=Mobius(0.01031867*2,Complex(0.09964592*2, 0.09964592*2), 0, 1)
141
+ m[N+22]=Mobius(0.00851811*2,Complex(0.08225812*2, 0.04611885*2), 0, 1)
142
+ m[N+23]=Mobius(0.00851811*2,Complex(0.04611885*2, 0.08225812*2), 0, 1)
143
+
144
+ m[N+24]=Mobius(0.01031867*2,Complex(-0.09964592*2, 0.09964592*2), 0, 1)
145
+ m[N+25]=Mobius(0.00851811*2,Complex(-0.08225812*2, 0.04611885*2), 0, 1)
146
+ m[N+26]=Mobius(0.00851811*2,Complex(-0.04611885*2, 0.08225812*2), 0, 1)
147
+
148
+ m[N+27]=Mobius(0.01031867*2,Complex(-0.09964592*2, -0.09964592*2), 0, 1)
149
+ m[N+28]=Mobius(0.00851811*2,Complex(-0.08225812*2, -0.04611885*2), 0, 1)
150
+ m[N+29]=Mobius(0.00851811*2,Complex(-0.04611885*2, -0.08225812*2), 0, 1)
151
+
152
+ m[N+30]=Mobius(0.01031867*2,Complex(0.09964592*2, -0.09964592*2), 0, 1)
153
+ m[N+31]=Mobius(0.00851811*2,Complex(0.08225812*2, -0.04611885*2), 0, 1)
154
+ m[N+32]=Mobius(0.00851811*2,Complex(0.04611885*2, -0.08225812*2), 0, 1)
155
+
156
+
157
+ '
158
+ ' Assign Total = the total number of circles.
159
+ '
160
+ const Complex Total = 0
161
+ count = totalGen
162
+
163
+ for (i = 0, i < Steps, i += 1) {
164
+ Total += count
165
+ count *= totalGen
166
+ }
167
+ const Circle c[Total]
168
+ const Complex index[Total]
169
+ const Complex level[Total]
170
+ Circle UnitCircle = CircleC(0, 1)
171
+ '
172
+ ' Generate the base circles (all generators applied to unit circle)
173
+ '
174
+ for (i = 0, i < totalGen, i += 1) {
175
+ c[i] = Mobius.TransformCircle(m[i], UnitCircle)
176
+ index[i] = i
177
+ level[i] = 0
178
+ }
179
+ count = totalGen
180
+ max = 0
181
+ '
182
+ ' Generate the remaining circles by applying all generators iteratively.
183
+ '
184
+ if (Steps > 1) {
185
+ for (i = 1, i < Steps, i += 1) {
186
+ min = max
187
+ max = count
188
+
189
+ for (j = min, j < max, j += 1) {
190
+ for (k = 0, k < totalGen, k += 1) {
191
+ c[count] = Mobius.TransformCircle(m[k], c[j])
192
+ if (c[count].Radius >= RadiusMin) {
193
+ index[count] = index[j]
194
+ level[count] = i
195
+ count += 1
196
+ }
197
+ }
198
+ }
199
+ }
200
+ }
201
+ Total = count
202
+
203
+ CurveTrap.Initialize( \
204
+ Center, DegreeToRadian(Angle), Scale, AlternateAngle, 6, False, LineWidth \
205
+ )
206
+ '
207
+ ' Add the circles to the trap.
208
+ '
209
+ for (i = 0, i < Total, i += 1) {
210
+ lev = level[i]
211
+ idx = index[i]
212
+ if (idx = 0) {
213
+ if (ShowCenter[lev]) {
214
+ CurveTrap.AddCircle2(c[i], Solid, IIf(Solid, lev, 0), idx, lev)
215
+ }
216
+ } else {
217
+ if (ShowRing[lev]) {
218
+ CurveTrap.AddCircle2(c[i], Solid, IIf(Solid, lev, 0), idx, lev)
219
+ }
220
+ }
221
+ }
222
+
223
+ trap:
224
+
225
+ trappedPoint = CurveTrap.Apply(z)
226
+
227
+ properties:
228
+
229
+ divider {
230
+ caption = "General Options"
231
+ }
232
+ option Center {
233
+ type = Complex
234
+ caption = "Center"
235
+ details = "Center of trap"
236
+ default = 0
237
+ }
238
+ option Angle {
239
+ type = Float
240
+ caption = "Angle"
241
+ details = "Angle of rotation"
242
+ default = 0
243
+ range = [-360,360]
244
+ }
245
+ option Scale {
246
+ type = Float
247
+ caption = "Scale"
248
+ details = "Scale factor applied to trap"
249
+ range = (0,)
250
+ default = 2
251
+ }
252
+ option Solid {
253
+ type = Boolean
254
+ caption = "Solid"
255
+ details = "Check to create solid trap"
256
+ default = False
257
+ }
258
+ option AlternateAngle {
259
+ type = Boolean
260
+ caption = "Alternate Angle"
261
+ details = "Use alternate angle calculation"
262
+ default = False
263
+ }
264
+ option LineWidth {
265
+ type = Float
266
+ caption = "Line Width"
267
+ details = "Extent of trap on either side of curve (> 0)"
268
+ range = (0,)
269
+ default = 0.00411522633744855967078189300413
270
+ enabled = ~Solid
271
+ }
272
+ divider {
273
+ caption = "U/V Controls"
274
+ }
275
+ option AbsU {
276
+ type = Float
277
+ caption = "Abs(U)"
278
+ details = "Magnitude of U (1-2)"
279
+ default = 1.1
280
+ range = [1,2]
281
+ }
282
+ option ArgU {
283
+ type = Float
284
+ caption = "Arg(U)"
285
+ details = "Angle of U"
286
+ default = 0
287
+ range = [-360,360]
288
+ }
289
+ option ArgV {
290
+ type = Float
291
+ caption = "Arg(V)"
292
+ details = "Angle of V"
293
+ default = 180
294
+ range = [-360,360]
295
+ }
296
+ divider {
297
+ caption = "Circle Controls"
298
+ }
299
+ option N {
300
+ type = IntegerEnum(3,12)
301
+ caption = "N"
302
+ details = "Number of base circles"
303
+ default = 4
304
+ }
305
+ option Steps {
306
+ type = IntegerEnum(1,16)
307
+ caption = "Steps"
308
+ details = "Number of inversion steps"
309
+ default = 4 ' <-- REDUCED from 8 to 4 to avoid memory crash
310
+ }
311
+ option Shift {
312
+ type = Boolean
313
+ caption = "Shift"
314
+ details = "Check to rotate initial chain by pi/N"
315
+ default = False
316
+ }
317
+ option RadiusMin {
318
+ type = Float
319
+ caption = "Radius Min"
320
+ details = "Minimum acceptable circle radius"
321
+ default = 0
322
+ range = [0,)
323
+ }
324
+ #define ShowLevel(Index)
325
+
326
+ divider {
327
+ caption = "Level #Index# Options"
328
+ }
329
+ option LR#Index# {
330
+ type = Boolean
331
+ caption = "Show Ring"
332
+ details = "Show ring of circles at level #Index#"
333
+ default = True
334
+ enabled = Steps >= #Index#
335
+ }
336
+ option LC#Index# {
337
+ type = Boolean
338
+ caption = "Show Center"
339
+ details = "Show center circle at level #Index#"
340
+ default = True
341
+ enabled = Steps >= #Index#
342
+ }
343
+ #end
344
+
345
+ #include ShowLevel("1")
346
+ #include ShowLevel("2")
347
+ #include ShowLevel("3")
348
+ #include ShowLevel("4")
349
+ #include ShowLevel("5")
350
+ #include ShowLevel("6")
351
+ #include ShowLevel("7")
352
+ #include ShowLevel("8")
353
+ #include ShowLevel("9")
354
+ #include ShowLevel("10")
355
+ #include ShowLevel("11")
356
+ #include ShowLevel("12")
357
+ #include ShowLevel("13")
358
+ #include ShowLevel("14")
359
+ #include ShowLevel("15")
360
+ #include ShowLevel("16")]]></Instructions>
361
+ <PropertyValueOverrides>
362
+ <Option Name="Solid" Type="BooleanOption" Value="True" />
363
+ <Option Name="LR1" Type="BooleanOption" Value="False" />
364
+ <Option Name="LR2" Type="BooleanOption" Value="False" />
365
+ <Option Name="LR3" Type="BooleanOption" Value="False" />
366
+ <Option Name="LR4" Type="BooleanOption" Value="False" />
367
+ </PropertyValueOverrides>
368
+ </OrbitTrap>
369
+ </OrbitTrapItem>
370
+ </OrbitTrapArray>
371
+ <OrbitTrapMasterController Id="891d4c82-e603-4114-b2a3-f23668c471d1" Title="Blend">
372
+ <Instructions><![CDATA[
373
+ comment:
374
+
375
+ Blends the colors returned by controller 0 and
376
+ controller 1 based on a fixed value or a blending
377
+ curve defined by a sample point value.
378
+
379
+ color:
380
+
381
+ if (VariableBlend) {
382
+ r = Blend
383
+
384
+ if (Power <> 1) {
385
+ r = r^Power
386
+ }
387
+ if (Factor <> 1 || Offset <> 0) {
388
+ r = Clip(Offset + Factor*r)
389
+ }
390
+ if (Invert) {
391
+ r = 1-r
392
+ }
393
+ } else {
394
+ r = BlendPower
395
+ }
396
+ color = Color.Blend( \
397
+ ColorBlendType, \
398
+ Controller.Color(0), \
399
+ Controller.Color(1), \
400
+ r \
401
+ )
402
+
403
+ properties:
404
+
405
+ #include ColorBlendTypes
406
+
407
+ divider {
408
+ caption = "Color Blend Options"
409
+ }
410
+ option ColorBlendType {
411
+ type = ColorBlendTypes
412
+ caption = "Blend Type"
413
+ details = "Type of blend"
414
+ default = ColorBlendTypes.SoftLight
415
+ }
416
+ option VariableBlend {
417
+ type = Boolean
418
+ caption = "Variable Blend"
419
+ details = "Blend strength defined by blending curve"
420
+ default = True
421
+ }
422
+ divider {
423
+ caption = "Constant Blend"
424
+ enabled = ~VariableBlend
425
+ }
426
+ option BlendPower {
427
+ type = Float
428
+ caption = "Power"
429
+ details = "Power applied to blend (0-1)"
430
+ default = 1
431
+ range = [0,1]
432
+ enabled = ~VariableBlend
433
+ }
434
+ divider {
435
+ caption = "Variable Blend"
436
+ enabled = VariableBlend
437
+ }
438
+ option Blend {
439
+ type = SamplePointValue
440
+ caption = "Blend"
441
+ default = Sample.TrapDwell
442
+ enabled = VariableBlend
443
+ }
444
+ option Power {
445
+ type = Float
446
+ caption = "Power"
447
+ details = "Alters shape of blending curve (> 0)"
448
+ default = 0.5
449
+ range = (0,)
450
+ enabled = VariableBlend
451
+ }
452
+ option Factor {
453
+ type = Float
454
+ caption = "Factor"
455
+ details = "Alters shape of blending curve (> 0)"
456
+ default = 1
457
+ range = (0,)
458
+ enabled = VariableBlend
459
+ }
460
+ option Offset {
461
+ type = Float
462
+ caption = "Offset"
463
+ details = "Alters position of blending curve"
464
+ default = 0
465
+ enabled = VariableBlend
466
+ }
467
+ option Invert {
468
+ type = Boolean
469
+ caption = "Invert"
470
+ details = "Inverts blending curve"
471
+ default = True
472
+ enabled = VariableBlend
473
+ }
474
+ ]]></Instructions>
475
+ <PropertyValueOverrides>
476
+ <Option Name="ColorBlendType" Type="EnumOption" Value="ColorBlendTypes.Difference" />
477
+ <Option Name="BlendPower" Type="FloatOption" Value="0.3" />
478
+ <Option Name="Blend" Type="SamplePointValueOption" Value="Sample.TrapDelta" />
479
+ <Option Name="Power" Type="FloatOption" Value="0.555555555" />
480
+ </PropertyValueOverrides>
481
+ </OrbitTrapMasterController>
482
+ <OrbitTrapControllerArray>
483
+ <OrbitTrapController Id="29fbd0db-b470-4d0d-ad93-e4d5d937ef86" Title="ⵔ·ⵔ" ApplyDepth="False" Apply3D="False">
484
+ <GradientArray />
485
+ <TextureArray />
486
+ <Instructions><![CDATA[
487
+ comment:
488
+
489
+ This controller colors each trap based on the
490
+ property 'Index Map' and the point's 'Trap Dwell'
491
+ 'Trap Index' or 'Trap Delta'. You can define up to
492
+ 16 colors and these are mapped to the index map
493
+ values. Offset can be used to shift the set of
494
+ colors with respect to value 0.
495
+
496
+ If Cutouts are active, the trap is divided into
497
+ N sectors and a user defined percent of each
498
+ sector is inverted with respect to the 3D shading
499
+ effect. This gives the appearance that part of
500
+ the trap surface has been cutout or folded over.
501
+
502
+ The Cutout effect only looks good if the trap
503
+ is a solid shape. For example, the 'Shape',
504
+ 'Tangent Circles', 'Shapes' and 'Squares'
505
+ traps support a 'Solid' property that is used to
506
+ produce a solid figure. You should check this
507
+ property to display Cutouts.
508
+
509
+ Also note that the Cutout effect only works if
510
+ the trap's angle is given relative to the center
511
+ of the solid shape. This is always the case when
512
+ the trap is composed of a single shape. However,
513
+ when the trap is composed of several shapes arranged
514
+ in a pattern like the 'Tangent Circles', 'Shapes' and
515
+ 'Squares' traps, the angle is given relative to the
516
+ center of the pattern not the individual shapes.
517
+ In those cases, you will need to check the
518
+ 'Alternate Angle' property on the properties page
519
+ for the specific trap so the angle is given relative
520
+ to the individual shapes.
521
+
522
+ global:
523
+
524
+ const Complex angleShift = SectorAngle / 360
525
+ const Complex percentSolid = 1 - PercentCutout
526
+
527
+ color:
528
+
529
+ switch (IndexMap) {
530
+ case IndexMapTypes.TrapDwell: index = Sample.TrapDwellRaw
531
+ case IndexMapTypes.TrapIndex: index = Sample.TrapIndexRaw
532
+ case IndexMapTypes.TrapDelta: index = Sample.TrapDeltaRaw
533
+ case IndexMapTypes.Alternate1Index: index = Sample.Alternate1IndexRaw
534
+ }
535
+ color = Colors[WrapIndex(Offset + index, Count)]
536
+
537
+ if (ApplyCutouts) {
538
+ r = Sectors * Wrap(Sample.TrapAngle - angleShift)
539
+ r = r - Int(r)
540
+ v = Abs(Sample.TrapValue)
541
+
542
+ compositeHeight = IIf(r < percentSolid, v, Blend(0.75, 0.25, v))
543
+ } else {
544
+ compositeHeight = Sample.TrapValue
545
+ }
546
+
547
+ properties:
548
+
549
+ divider {
550
+ caption = "Index Map"
551
+ }
552
+ enum IndexMapTypes {
553
+ TrapDwell, "Trap Dwell"
554
+ TrapIndex, "Trap Index"
555
+ TrapDelta, "Trap Delta"
556
+ Alternate1Index , "Alternate 1 Index"
557
+ }
558
+ option IndexMap {
559
+ type = IndexMapTypes
560
+ caption = "Index Map"
561
+ details = "Color index map"
562
+ default = IndexMapTypes.TrapDwell
563
+ }
564
+ divider {
565
+ caption = "Color Map"
566
+ }
567
+ option Count {
568
+ type = IntegerEnum(1,32)
569
+ caption = "Count"
570
+ details = "Number of colors to use"
571
+ default = 8
572
+ }
573
+ option Colors {
574
+ type = ColorSet[Count]
575
+ caption = "Colors"
576
+ default = FF00AE, FF2020, FF8200, FFFF00, 00FF6C, 00FFFF, 4040FF, AE60FF
577
+ }
578
+ option Offset {
579
+ type = IntegerEnum(0,31)
580
+ caption = "Offset"
581
+ details = "Offset into set of colors"
582
+ default = 0
583
+ }
584
+ divider {
585
+ caption = "Cutouts (Solid traps only)"
586
+ }
587
+ option ApplyCutouts {
588
+ type = Boolean
589
+ caption = "Active"
590
+ details = "Activate cutout effects"
591
+ default = False
592
+ }
593
+ option Sectors {
594
+ type = IntegerEnum(2,16)
595
+ caption = "Sectors"
596
+ details = "Number of sectors"
597
+ default = 2
598
+ enabled = ApplyCutouts
599
+ }
600
+ option SectorAngle {
601
+ type = Float
602
+ caption = "Angle"
603
+ details = "Starting angle of 1st sector"
604
+ default = 0
605
+ range = [-360,360]
606
+ enabled = ApplyCutouts
607
+ }
608
+ option PercentCutout {
609
+ type = Float
610
+ caption = "Percent Cutout"
611
+ details = "Percent of sector that is cutout"
612
+ range = [0,1]
613
+ default = 0.5
614
+ enabled = ApplyCutouts
615
+ }
616
+ ]]></Instructions>
617
+ <PropertyValueOverrides>
618
+ <Option Name="IndexMap" Type="EnumOption" Value="IndexMapTypes.TrapDelta" />
619
+ <Option Name="Count" Type="IntegerEnumOption" Value="1" />
620
+ <Option Name="Colors" Type="ColorSetOption" Value="FFFFFF" />
621
+ </PropertyValueOverrides>
622
+ </OrbitTrapController>
623
+ </OrbitTrapControllerArray>
624
+ <SampleDataNormalizer>
625
+ <NormalizerDescriptor />
626
+ </SampleDataNormalizer>
627
+ <SampleDataNormalizer>
628
+ <NormalizerDescriptor />
629
+ </SampleDataNormalizer>
630
+ <SampleDataNormalizer>
631
+ <NormalizerDescriptor />
632
+ </SampleDataNormalizer>
633
+ </OrbitTrapInfo>
634
+ <TransformationArray>
635
+ <Transformation Id="7fc4bc2c-b961-4431-b074-277d7b29842b" Title="Identity">
636
+ <Instructions><![CDATA[]]></Instructions>
637
+ <PropertyValueOverrides />
638
+ </Transformation>
639
+ </TransformationArray>
640
+ <TriangleMetricSet>
641
+ <Instructions><![CDATA[metric = p1]]></Instructions>
642
+ <TriangleMetric />
643
+ <TriangleMetric />
644
+ <TriangleMetric />
645
+ </TriangleMetricSet>
646
+ </Fractal>
𑁍/⁜𑁍⁜/ꓨИꟼ.፨ꔹ፨.⁘.⅃MX..⁜𑁍⁜..XML.⁘.፨ꔹ፨.PNG ADDED

Git LFS Details

  • SHA256: f3138519b1b1ddc64a5a140aff40edd5c85e4a3099bfca00583f8ba4f1b00435
  • Pointer size: 131 Bytes
  • Size of remote file: 103 kB