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

​ ​

Browse files
.gitattributes CHANGED
@@ -104,3 +104,4 @@
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
 
 
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
107
+ 𑁍/⁜𑁍⁜/ꓨИꟼ.፨ꔹ፨.ⵔ·ⵔ⊚⸭⊚ⵔ·ⵔ.⅃MX...𖡼⁜𖡼𑁍𖡼⁜𖡼...XML.ⵔ·ⵔ⊚⸭⊚ⵔ·ⵔ.፨ꔹ፨.PNG filter=lfs diff=lfs merge=lfs -text
𑁍/⁜𑁍⁜/TXT.⅃MX...𖡼⁜𖡼𑁍𖡼⁜𖡼...XML.TXT ADDED
@@ -0,0 +1,388 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 + 68
27
+ Mobius m[totalGen]
28
+
29
+ '
30
+ ' Given N, find radius R such that N circles with radius R can be
31
+ ' placed along the inside of the unit circle, each tangent to the
32
+ ' unit circle and each of its two adjacent neighbors.
33
+ '
34
+ r = 1/(1+1/Sin(Math.PI/N))
35
+
36
+ step = 2*Math.PI/N
37
+ ang = IIf(Shift, step/2, 0)
38
+ '
39
+ ' Center generator (index 0)
40
+ '
41
+ m[0] = Mobius(1-2*r, 0, 0, 1)
42
+ '
43
+ ' Ring generators (indices 1..N)
44
+ '
45
+ for (i = 1, i <= N, i += 1) {
46
+ rotate = Cis(ang)
47
+ m[i] = Mobius.Multiply( \
48
+ Mobius(r*rotate, (1-r)*rotate, 0, 1), \
49
+ UnitCircleGroup \
50
+ )
51
+ ang += step
52
+ }
53
+ '
54
+ ' Custom generators (keep if needed – they increase totalGen)
55
+ '
56
+ m[N+1]=Mobius(0.08578644*2,Complex( 0.29289322*2, 0.29289322*2),0,1)
57
+ m[N+2]=Mobius(0.08578644*2,Complex(-0.29289322*2,-0.29289322*2),0,1)
58
+ m[N+3]=Mobius(0.08578644*2,Complex( 0.29289322*2,-0.29289322*2),0,1)
59
+ m[N+4]=Mobius(0.08578644*2,Complex(-0.29289322*2, 0.29289322*2),0,1)
60
+
61
+ 'm[N+5]=Mobius(0.02240775*2,Complex( 0.07650484*2, 0.07650484*2), 0, 1)
62
+ 'm[N+6]=Mobius(0.02240775*2,Complex(-0.07650484*2, -0.07650484*2), 0, 1)
63
+ 'm[N+7]=Mobius(0.02240775*2,Complex( 0.07650484*2, -0.07650484*2), 0, 1)
64
+ 'm[N+8]=Mobius(0.02240775*2,Complex(-0.07650484*2, 0.07650484*2), 0, 1)
65
+
66
+ m[N+5]=Mobius(0.04142136*2,Complex(0.40000000*2,0.22426407*2), 0, 1)
67
+ m[N+6]=Mobius(0.04142136*2,Complex(0.22426407*2,0.40000000*2), 0, 1)
68
+
69
+ m[N+7]=Mobius(0.04142136*2,Complex(-0.40000000*2,0.22426407*2), 0, 1)
70
+ m[N+8]=Mobius(0.04142136*2,Complex(-0.22426407*2,0.40000000*2), 0, 1)
71
+
72
+ m[N+9]=Mobius(0.04142136*2,Complex(-0.40000000*2,-0.22426407*2), 0, 1)
73
+ m[N+10]=Mobius(0.04142136*2,Complex(-0.22426407*2,-0.40000000*2), 0, 1)
74
+
75
+ m[N+11]=Mobius(0.04142136*2,Complex(0.40000000*2,-0.22426407*2), 0, 1)
76
+ m[N+12]=Mobius(0.04142136*2,Complex(0.22426407*2,-0.40000000*2), 0, 1)
77
+
78
+
79
+
80
+ m[N+13]=Mobius(0.02364946*2,Complex(0.44290516*2,0.17534212*2), 0, 1)
81
+ m[N+14]=Mobius(0.02364946*2,Complex(0.17534212*2,0.44290516*2), 0, 1)
82
+
83
+ m[N+15]=Mobius(0.02364946*2,Complex(-0.44290516*2,0.17534212*2), 0, 1)
84
+ m[N+16]=Mobius(0.02364946*2,Complex(-0.17534212*2,0.44290516*2), 0, 1)
85
+
86
+ m[N+17]=Mobius(0.02364946*2,Complex(-0.44290516*2,-0.17534212*2), 0, 1)
87
+ m[N+18]=Mobius(0.02364946*2,Complex(-0.17534212*2,-0.44290516*2), 0, 1)
88
+
89
+ m[N+19]=Mobius(0.02364946*2,Complex(0.44290516*2,-0.17534212*2), 0, 1)
90
+ m[N+20]=Mobius(0.02364946*2,Complex(0.17534212*2,-0.44290516*2), 0, 1)
91
+
92
+
93
+
94
+ m[N+21]=Mobius(0.01513243*2,Complex(0.46346709*2,0.14245988*2), 0, 1)
95
+ m[N+22]=Mobius(0.01513243*2,Complex(0.14245988*2,0.46346709*2), 0, 1)
96
+
97
+ m[N+23]=Mobius(0.01513243*2,Complex(-0.46346709*2,0.14245988*2), 0, 1)
98
+ m[N+24]=Mobius(0.01513243*2,Complex(-0.14245988*2,0.46346709*2), 0, 1)
99
+
100
+ m[N+25]=Mobius(0.01513243*2,Complex(-0.46346709*2,-0.14245988*2), 0, 1)
101
+ m[N+26]=Mobius(0.01513243*2,Complex(-0.14245988*2,-0.46346709*2), 0, 1)
102
+
103
+ m[N+27]=Mobius(0.01513243*2,Complex(0.46346709*2,-0.14245988*2), 0, 1)
104
+ m[N+28]=Mobius(0.01513243*2,Complex(0.14245988*2,-0.46346709*2), 0, 1)
105
+
106
+
107
+
108
+ m[N+29]=Mobius(0.01046692*2,Complex(0.47473062*2,0.11947164*2), 0, 1)
109
+ m[N+30]=Mobius(0.01046692*2,Complex(0.11947164*2,0.47473062*2), 0, 1)
110
+
111
+ m[N+31]=Mobius(0.01046692*2,Complex(-0.47473062*2,0.11947164*2), 0, 1)
112
+ m[N+32]=Mobius(0.01046692*2,Complex(-0.11947164*2,0.47473062*2), 0, 1)
113
+
114
+ m[N+33]=Mobius(0.01046692*2,Complex(-0.47473062*2,-0.11947164*2), 0, 1)
115
+ m[N+34]=Mobius(0.01046692*2,Complex(-0.11947164*2,-0.47473062*2), 0, 1)
116
+
117
+ m[N+35]=Mobius(0.01046692*2,Complex(0.47473062*2,-0.11947164*2), 0, 1)
118
+ m[N+36]=Mobius(0.01046692*2,Complex(0.11947164*2,-0.47473062*2), 0, 1)
119
+
120
+
121
+
122
+ m[N+37]=Mobius(0.00765393*2,Complex(0.48152177*2,0.10267148*2), 0, 1)
123
+ m[N+38]=Mobius(0.00765393*2,Complex(0.10267148*2,0.48152177*2), 0, 1)
124
+
125
+ m[N+39]=Mobius(0.00765393*2,Complex(-0.48152177*2,0.10267148*2), 0, 1)
126
+ m[N+40]=Mobius(0.00765393*2,Complex(-0.10267148*2,0.48152177*2), 0, 1)
127
+
128
+ m[N+41]=Mobius(0.00765393*2,Complex(-0.48152177*2,-0.10267148*2), 0, 1)
129
+ m[N+42]=Mobius(0.00765393*2,Complex(-0.10267148*2,-0.48152177*2), 0, 1)
130
+
131
+ m[N+43]=Mobius(0.00765393*2,Complex(0.48152177*2,-0.10267148*2), 0, 1)
132
+ m[N+44]=Mobius(0.00765393*2,Complex(0.10267148*2,-0.48152177*2), 0, 1)
133
+
134
+
135
+
136
+ m[N+45]=Mobius(0.00583358*2,Complex(0.48591649*2,0.08992003*2), 0, 1)
137
+ m[N+46]=Mobius(0.00583358*2,Complex(0.08992003*2,0.48591649*2), 0, 1)
138
+
139
+ m[N+47]=Mobius(0.00583358*2,Complex(-0.48591649*2,0.08992003*2), 0, 1)
140
+ m[N+48]=Mobius(0.00583358*2,Complex(-0.08992003*2,0.48591649*2), 0, 1)
141
+
142
+ m[N+49]=Mobius(0.00583358*2,Complex(-0.48591649*2,-0.08992003*2), 0, 1)
143
+ m[N+50]=Mobius(0.00583358*2,Complex(-0.08992003*2,-0.48591649*2), 0, 1)
144
+
145
+ m[N+51]=Mobius(0.00583358*2,Complex(0.48591649*2,-0.08992003*2), 0, 1)
146
+ m[N+52]=Mobius(0.00583358*2,Complex(0.08992003*2,-0.48591649*2), 0, 1)
147
+
148
+
149
+
150
+ m[N+53]=Mobius(0.00459036*2,Complex(0.48891789*2,0.07993754*2), 0, 1)
151
+ m[N+54]=Mobius(0.00459036*2,Complex(0.07993754*2,0.48891789*2), 0, 1)
152
+
153
+ m[N+55]=Mobius(0.00459036*2,Complex(-0.48891789*2,0.07993754*2), 0, 1)
154
+ m[N+56]=Mobius(0.00459036*2,Complex(-0.07993754*2,0.48891789*2), 0, 1)
155
+
156
+ m[N+57]=Mobius(0.00459036*2,Complex(-0.48891789*2,-0.07993754*2), 0, 1)
157
+ m[N+58]=Mobius(0.00459036*2,Complex(-0.07993754*2,-0.48891789*2), 0, 1)
158
+
159
+ m[N+59]=Mobius(0.00459036*2,Complex(0.48891789*2,-0.07993754*2), 0, 1)
160
+ m[N+60]=Mobius(0.00459036*2,Complex(0.07993754*2,-0.48891789*2), 0, 1)
161
+
162
+
163
+
164
+ m[N+61]=Mobius(0.00370465*2,Complex(0.49105618*2,0.07192287*2), 0, 1)
165
+ m[N+62]=Mobius(0.00370465*2,Complex(0.07192287*2,0.49105618*2), 0, 1)
166
+
167
+ m[N+63]=Mobius(0.00370465*2,Complex(-0.49105618*2,0.07192287*2), 0, 1)
168
+ m[N+64]=Mobius(0.00370465*2,Complex(-0.07192287*2,0.49105618*2), 0, 1)
169
+
170
+ m[N+65]=Mobius(0.00370465*2,Complex(-0.49105618*2,-0.07192287*2), 0, 1)
171
+ m[N+66]=Mobius(0.00370465*2,Complex(-0.07192287*2,-0.49105618*2), 0, 1)
172
+
173
+ m[N+67]=Mobius(0.00370465*2,Complex(0.49105618*2,-0.07192287*2), 0, 1)
174
+ m[N+68]=Mobius(0.00370465*2,Complex(0.07192287*2,-0.49105618*2), 0, 1)
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+ '
183
+ ' ---- Compute maximum possible number of center circles ----
184
+ '
185
+ Complex MaxTotal = 0
186
+ count = 1 ' at level 0, only the center circle
187
+ for (i = 0, i < Steps, i += 1) {
188
+ MaxTotal += count
189
+ count *= totalGen
190
+ }
191
+ '
192
+ ' Allocate arrays of size MaxTotal
193
+ '
194
+ Complex Total = MaxTotal ' will be overwritten with actual count after generation
195
+ Circle c[Total]
196
+ Complex index[Total]
197
+ Complex level[Total]
198
+ Circle UnitCircle = CircleC(0, 1)
199
+ '
200
+ ' ---- Generate only center circles ----
201
+ '
202
+ ' Initialize level 0: the single center circle
203
+ c[0] = Mobius.TransformCircle(m[0], UnitCircle)
204
+ index[0] = 0
205
+ level[0] = 0
206
+ count = 1
207
+ start = 0
208
+ end = 1 ' circles from previous level are at indices start..end-1
209
+
210
+ if (Steps > 1) {
211
+ for (lev = 1, lev < Steps, lev += 1) {
212
+ for (j = start, j < end, j += 1) {
213
+ ' All circles in the array have index = 0, so no need to check.
214
+ ' Apply all generators to each existing center circle.
215
+ for (k = 0, k < totalGen, k += 1) {
216
+ c[count] = Mobius.TransformCircle(m[k], c[j])
217
+ if (c[count].Radius >= RadiusMin) {
218
+ index[count] = 0 ' inherited from parent (always 0)
219
+ level[count] = lev
220
+ count += 1
221
+ }
222
+ }
223
+ }
224
+ start = end
225
+ end = count ' new circles for next level start at the old end
226
+ }
227
+ }
228
+ Total = count ' actual number used
229
+
230
+ CurveTrap.Initialize( \
231
+ Center, DegreeToRadian(Angle), Scale, AlternateAngle, 6, False, LineWidth \
232
+ )
233
+ '
234
+ ' Add the circles to the trap.
235
+ '
236
+ for (i = 0, i < Total, i += 1) {
237
+ lev = level[i]
238
+ idx = index[i] ' always 0 now
239
+ if (idx = 0) {
240
+ if (ShowCenter[lev]) {
241
+ CurveTrap.AddCircle2(c[i], Solid, IIf(Solid, lev, 0), idx, lev)
242
+ }
243
+ } else {
244
+ ' This branch will never be taken because we only have idx=0
245
+ if (ShowRing[lev]) {
246
+ CurveTrap.AddCircle2(c[i], Solid, IIf(Solid, lev, 0), idx, lev)
247
+ }
248
+ }
249
+ }
250
+
251
+ trap:
252
+
253
+ trappedPoint = CurveTrap.Apply(z)
254
+
255
+ properties:
256
+
257
+ divider {
258
+ caption = "General Options"
259
+ }
260
+ option Center {
261
+ type = Complex
262
+ caption = "Center"
263
+ details = "Center of trap"
264
+ default = 0
265
+ }
266
+ option Angle {
267
+ type = Float
268
+ caption = "Angle"
269
+ details = "Angle of rotation"
270
+ default = 0
271
+ range = [-360,360]
272
+ }
273
+ option Scale {
274
+ type = Float
275
+ caption = "Scale"
276
+ details = "Scale factor applied to trap"
277
+ range = (0,)
278
+ default = 2
279
+ }
280
+ option Solid {
281
+ type = Boolean
282
+ caption = "Solid"
283
+ details = "Check to create solid trap"
284
+ default = False
285
+ }
286
+ option AlternateAngle {
287
+ type = Boolean
288
+ caption = "Alternate Angle"
289
+ details = "Use alternate angle calculation"
290
+ default = False
291
+ }
292
+ option LineWidth {
293
+ type = Float
294
+ caption = "Line Width"
295
+ details = "Extent of trap on either side of curve (> 0)"
296
+ range = (0,)
297
+ default = 0.00411522633744855967078189300413
298
+ enabled = ~Solid
299
+ }
300
+ divider {
301
+ caption = "U/V Controls"
302
+ }
303
+ option AbsU {
304
+ type = Float
305
+ caption = "Abs(U)"
306
+ details = "Magnitude of U (1-2)"
307
+ default = 1.1
308
+ range = [1,2]
309
+ }
310
+ option ArgU {
311
+ type = Float
312
+ caption = "Arg(U)"
313
+ details = "Angle of U"
314
+ default = 0
315
+ range = [-360,360]
316
+ }
317
+ option ArgV {
318
+ type = Float
319
+ caption = "Arg(V)"
320
+ details = "Angle of V"
321
+ default = 180
322
+ range = [-360,360]
323
+ }
324
+ divider {
325
+ caption = "Circle Controls"
326
+ }
327
+ option N {
328
+ type = IntegerEnum(3,12)
329
+ caption = "N"
330
+ details = "Number of base circles"
331
+ default = 4
332
+ }
333
+ option Steps {
334
+ type = IntegerEnum(1,16)
335
+ caption = "Steps"
336
+ details = "Number of inversion steps"
337
+ default = 4 ' you can increase to 7 now, but set RadiusMin > 0 to avoid memory issues
338
+ }
339
+ option Shift {
340
+ type = Boolean
341
+ caption = "Shift"
342
+ details = "Check to rotate initial chain by pi/N"
343
+ default = False
344
+ }
345
+ option RadiusMin {
346
+ type = Float
347
+ caption = "Radius Min"
348
+ details = "Minimum acceptable circle radius"
349
+ default = 0.001 ' set to a small positive value to prune tiny circles
350
+ range = [0,)
351
+ }
352
+ #define ShowLevel(Index)
353
+
354
+ divider {
355
+ caption = "Level #Index# Options"
356
+ }
357
+ option LR#Index# {
358
+ type = Boolean
359
+ caption = "Show Ring"
360
+ details = "Show ring of circles at level #Index#"
361
+ default = True
362
+ enabled = Steps >= #Index#
363
+ }
364
+ option LC#Index# {
365
+ type = Boolean
366
+ caption = "Show Center"
367
+ details = "Show center circle at level #Index#"
368
+ default = True
369
+ enabled = Steps >= #Index#
370
+ }
371
+ #end
372
+
373
+ #include ShowLevel("1")
374
+ #include ShowLevel("2")
375
+ #include ShowLevel("3")
376
+ #include ShowLevel("4")
377
+ #include ShowLevel("5")
378
+ #include ShowLevel("6")
379
+ #include ShowLevel("7")
380
+ #include ShowLevel("8")
381
+ #include ShowLevel("9")
382
+ #include ShowLevel("10")
383
+ #include ShowLevel("11")
384
+ #include ShowLevel("12")
385
+ #include ShowLevel("13")
386
+ #include ShowLevel("14")
387
+ #include ShowLevel("15")
388
+ #include ShowLevel("16")
𑁍/⁜𑁍⁜/⅃MX...𖡼⁜𖡼𑁍𖡼⁜𖡼...XML ADDED
@@ -0,0 +1,737 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 + 68
85
+ Mobius m[totalGen]
86
+
87
+ '
88
+ ' Given N, find radius R such that N circles with radius R can be
89
+ ' placed along the inside of the unit circle, each tangent to the
90
+ ' unit circle and each of its two adjacent neighbors.
91
+ '
92
+ r = 1/(1+1/Sin(Math.PI/N))
93
+
94
+ step = 2*Math.PI/N
95
+ ang = IIf(Shift, step/2, 0)
96
+ '
97
+ ' Center generator (index 0)
98
+ '
99
+ m[0] = Mobius(1-2*r, 0, 0, 1)
100
+ '
101
+ ' Ring generators (indices 1..N)
102
+ '
103
+ for (i = 1, i <= N, i += 1) {
104
+ rotate = Cis(ang)
105
+ m[i] = Mobius.Multiply( \
106
+ Mobius(r*rotate, (1-r)*rotate, 0, 1), \
107
+ UnitCircleGroup \
108
+ )
109
+ ang += step
110
+ }
111
+ '
112
+ ' Custom generators (keep if needed – they increase totalGen)
113
+ '
114
+ m[N+1]=Mobius(0.08578644*2,Complex( 0.29289322*2, 0.29289322*2),0,1)
115
+ m[N+2]=Mobius(0.08578644*2,Complex(-0.29289322*2,-0.29289322*2),0,1)
116
+ m[N+3]=Mobius(0.08578644*2,Complex( 0.29289322*2,-0.29289322*2),0,1)
117
+ m[N+4]=Mobius(0.08578644*2,Complex(-0.29289322*2, 0.29289322*2),0,1)
118
+
119
+ 'm[N+5]=Mobius(0.02240775*2,Complex( 0.07650484*2, 0.07650484*2), 0, 1)
120
+ 'm[N+6]=Mobius(0.02240775*2,Complex(-0.07650484*2, -0.07650484*2), 0, 1)
121
+ 'm[N+7]=Mobius(0.02240775*2,Complex( 0.07650484*2, -0.07650484*2), 0, 1)
122
+ 'm[N+8]=Mobius(0.02240775*2,Complex(-0.07650484*2, 0.07650484*2), 0, 1)
123
+
124
+ m[N+5]=Mobius(0.04142136*2,Complex(0.40000000*2,0.22426407*2), 0, 1)
125
+ m[N+6]=Mobius(0.04142136*2,Complex(0.22426407*2,0.40000000*2), 0, 1)
126
+
127
+ m[N+7]=Mobius(0.04142136*2,Complex(-0.40000000*2,0.22426407*2), 0, 1)
128
+ m[N+8]=Mobius(0.04142136*2,Complex(-0.22426407*2,0.40000000*2), 0, 1)
129
+
130
+ m[N+9]=Mobius(0.04142136*2,Complex(-0.40000000*2,-0.22426407*2), 0, 1)
131
+ m[N+10]=Mobius(0.04142136*2,Complex(-0.22426407*2,-0.40000000*2), 0, 1)
132
+
133
+ m[N+11]=Mobius(0.04142136*2,Complex(0.40000000*2,-0.22426407*2), 0, 1)
134
+ m[N+12]=Mobius(0.04142136*2,Complex(0.22426407*2,-0.40000000*2), 0, 1)
135
+
136
+
137
+
138
+ m[N+13]=Mobius(0.02364946*2,Complex(0.44290516*2,0.17534212*2), 0, 1)
139
+ m[N+14]=Mobius(0.02364946*2,Complex(0.17534212*2,0.44290516*2), 0, 1)
140
+
141
+ m[N+15]=Mobius(0.02364946*2,Complex(-0.44290516*2,0.17534212*2), 0, 1)
142
+ m[N+16]=Mobius(0.02364946*2,Complex(-0.17534212*2,0.44290516*2), 0, 1)
143
+
144
+ m[N+17]=Mobius(0.02364946*2,Complex(-0.44290516*2,-0.17534212*2), 0, 1)
145
+ m[N+18]=Mobius(0.02364946*2,Complex(-0.17534212*2,-0.44290516*2), 0, 1)
146
+
147
+ m[N+19]=Mobius(0.02364946*2,Complex(0.44290516*2,-0.17534212*2), 0, 1)
148
+ m[N+20]=Mobius(0.02364946*2,Complex(0.17534212*2,-0.44290516*2), 0, 1)
149
+
150
+
151
+
152
+ m[N+21]=Mobius(0.01513243*2,Complex(0.46346709*2,0.14245988*2), 0, 1)
153
+ m[N+22]=Mobius(0.01513243*2,Complex(0.14245988*2,0.46346709*2), 0, 1)
154
+
155
+ m[N+23]=Mobius(0.01513243*2,Complex(-0.46346709*2,0.14245988*2), 0, 1)
156
+ m[N+24]=Mobius(0.01513243*2,Complex(-0.14245988*2,0.46346709*2), 0, 1)
157
+
158
+ m[N+25]=Mobius(0.01513243*2,Complex(-0.46346709*2,-0.14245988*2), 0, 1)
159
+ m[N+26]=Mobius(0.01513243*2,Complex(-0.14245988*2,-0.46346709*2), 0, 1)
160
+
161
+ m[N+27]=Mobius(0.01513243*2,Complex(0.46346709*2,-0.14245988*2), 0, 1)
162
+ m[N+28]=Mobius(0.01513243*2,Complex(0.14245988*2,-0.46346709*2), 0, 1)
163
+
164
+
165
+
166
+ m[N+29]=Mobius(0.01046692*2,Complex(0.47473062*2,0.11947164*2), 0, 1)
167
+ m[N+30]=Mobius(0.01046692*2,Complex(0.11947164*2,0.47473062*2), 0, 1)
168
+
169
+ m[N+31]=Mobius(0.01046692*2,Complex(-0.47473062*2,0.11947164*2), 0, 1)
170
+ m[N+32]=Mobius(0.01046692*2,Complex(-0.11947164*2,0.47473062*2), 0, 1)
171
+
172
+ m[N+33]=Mobius(0.01046692*2,Complex(-0.47473062*2,-0.11947164*2), 0, 1)
173
+ m[N+34]=Mobius(0.01046692*2,Complex(-0.11947164*2,-0.47473062*2), 0, 1)
174
+
175
+ m[N+35]=Mobius(0.01046692*2,Complex(0.47473062*2,-0.11947164*2), 0, 1)
176
+ m[N+36]=Mobius(0.01046692*2,Complex(0.11947164*2,-0.47473062*2), 0, 1)
177
+
178
+
179
+
180
+ m[N+37]=Mobius(0.00765393*2,Complex(0.48152177*2,0.10267148*2), 0, 1)
181
+ m[N+38]=Mobius(0.00765393*2,Complex(0.10267148*2,0.48152177*2), 0, 1)
182
+
183
+ m[N+39]=Mobius(0.00765393*2,Complex(-0.48152177*2,0.10267148*2), 0, 1)
184
+ m[N+40]=Mobius(0.00765393*2,Complex(-0.10267148*2,0.48152177*2), 0, 1)
185
+
186
+ m[N+41]=Mobius(0.00765393*2,Complex(-0.48152177*2,-0.10267148*2), 0, 1)
187
+ m[N+42]=Mobius(0.00765393*2,Complex(-0.10267148*2,-0.48152177*2), 0, 1)
188
+
189
+ m[N+43]=Mobius(0.00765393*2,Complex(0.48152177*2,-0.10267148*2), 0, 1)
190
+ m[N+44]=Mobius(0.00765393*2,Complex(0.10267148*2,-0.48152177*2), 0, 1)
191
+
192
+
193
+
194
+ m[N+45]=Mobius(0.00583358*2,Complex(0.48591649*2,0.08992003*2), 0, 1)
195
+ m[N+46]=Mobius(0.00583358*2,Complex(0.08992003*2,0.48591649*2), 0, 1)
196
+
197
+ m[N+47]=Mobius(0.00583358*2,Complex(-0.48591649*2,0.08992003*2), 0, 1)
198
+ m[N+48]=Mobius(0.00583358*2,Complex(-0.08992003*2,0.48591649*2), 0, 1)
199
+
200
+ m[N+49]=Mobius(0.00583358*2,Complex(-0.48591649*2,-0.08992003*2), 0, 1)
201
+ m[N+50]=Mobius(0.00583358*2,Complex(-0.08992003*2,-0.48591649*2), 0, 1)
202
+
203
+ m[N+51]=Mobius(0.00583358*2,Complex(0.48591649*2,-0.08992003*2), 0, 1)
204
+ m[N+52]=Mobius(0.00583358*2,Complex(0.08992003*2,-0.48591649*2), 0, 1)
205
+
206
+
207
+
208
+ m[N+53]=Mobius(0.00459036*2,Complex(0.48891789*2,0.07993754*2), 0, 1)
209
+ m[N+54]=Mobius(0.00459036*2,Complex(0.07993754*2,0.48891789*2), 0, 1)
210
+
211
+ m[N+55]=Mobius(0.00459036*2,Complex(-0.48891789*2,0.07993754*2), 0, 1)
212
+ m[N+56]=Mobius(0.00459036*2,Complex(-0.07993754*2,0.48891789*2), 0, 1)
213
+
214
+ m[N+57]=Mobius(0.00459036*2,Complex(-0.48891789*2,-0.07993754*2), 0, 1)
215
+ m[N+58]=Mobius(0.00459036*2,Complex(-0.07993754*2,-0.48891789*2), 0, 1)
216
+
217
+ m[N+59]=Mobius(0.00459036*2,Complex(0.48891789*2,-0.07993754*2), 0, 1)
218
+ m[N+60]=Mobius(0.00459036*2,Complex(0.07993754*2,-0.48891789*2), 0, 1)
219
+
220
+
221
+
222
+ m[N+61]=Mobius(0.00370465*2,Complex(0.49105618*2,0.07192287*2), 0, 1)
223
+ m[N+62]=Mobius(0.00370465*2,Complex(0.07192287*2,0.49105618*2), 0, 1)
224
+
225
+ m[N+63]=Mobius(0.00370465*2,Complex(-0.49105618*2,0.07192287*2), 0, 1)
226
+ m[N+64]=Mobius(0.00370465*2,Complex(-0.07192287*2,0.49105618*2), 0, 1)
227
+
228
+ m[N+65]=Mobius(0.00370465*2,Complex(-0.49105618*2,-0.07192287*2), 0, 1)
229
+ m[N+66]=Mobius(0.00370465*2,Complex(-0.07192287*2,-0.49105618*2), 0, 1)
230
+
231
+ m[N+67]=Mobius(0.00370465*2,Complex(0.49105618*2,-0.07192287*2), 0, 1)
232
+ m[N+68]=Mobius(0.00370465*2,Complex(0.07192287*2,-0.49105618*2), 0, 1)
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+ '
241
+ ' ---- Compute maximum possible number of center circles ----
242
+ '
243
+ Complex MaxTotal = 0
244
+ count = 1 ' at level 0, only the center circle
245
+ for (i = 0, i < Steps, i += 1) {
246
+ MaxTotal += count
247
+ count *= totalGen
248
+ }
249
+ '
250
+ ' Allocate arrays of size MaxTotal
251
+ '
252
+ Complex Total = MaxTotal ' will be overwritten with actual count after generation
253
+ Circle c[Total]
254
+ Complex index[Total]
255
+ Complex level[Total]
256
+ Circle UnitCircle = CircleC(0, 1)
257
+ '
258
+ ' ---- Generate only center circles ----
259
+ '
260
+ ' Initialize level 0: the single center circle
261
+ c[0] = Mobius.TransformCircle(m[0], UnitCircle)
262
+ index[0] = 0
263
+ level[0] = 0
264
+ count = 1
265
+ start = 0
266
+ end = 1 ' circles from previous level are at indices start..end-1
267
+
268
+ if (Steps > 1) {
269
+ for (lev = 1, lev < Steps, lev += 1) {
270
+ for (j = start, j < end, j += 1) {
271
+ ' All circles in the array have index = 0, so no need to check.
272
+ ' Apply all generators to each existing center circle.
273
+ for (k = 0, k < totalGen, k += 1) {
274
+ c[count] = Mobius.TransformCircle(m[k], c[j])
275
+ if (c[count].Radius >= RadiusMin) {
276
+ index[count] = 0 ' inherited from parent (always 0)
277
+ level[count] = lev
278
+ count += 1
279
+ }
280
+ }
281
+ }
282
+ start = end
283
+ end = count ' new circles for next level start at the old end
284
+ }
285
+ }
286
+ Total = count ' actual number used
287
+
288
+ CurveTrap.Initialize( \
289
+ Center, DegreeToRadian(Angle), Scale, AlternateAngle, 6, False, LineWidth \
290
+ )
291
+ '
292
+ ' Add the circles to the trap.
293
+ '
294
+ for (i = 0, i < Total, i += 1) {
295
+ lev = level[i]
296
+ idx = index[i] ' always 0 now
297
+ if (idx = 0) {
298
+ if (ShowCenter[lev]) {
299
+ CurveTrap.AddCircle2(c[i], Solid, IIf(Solid, lev, 0), idx, lev)
300
+ }
301
+ } else {
302
+ ' This branch will never be taken because we only have idx=0
303
+ if (ShowRing[lev]) {
304
+ CurveTrap.AddCircle2(c[i], Solid, IIf(Solid, lev, 0), idx, lev)
305
+ }
306
+ }
307
+ }
308
+
309
+ trap:
310
+
311
+ trappedPoint = CurveTrap.Apply(z)
312
+
313
+ properties:
314
+
315
+ divider {
316
+ caption = "General Options"
317
+ }
318
+ option Center {
319
+ type = Complex
320
+ caption = "Center"
321
+ details = "Center of trap"
322
+ default = 0
323
+ }
324
+ option Angle {
325
+ type = Float
326
+ caption = "Angle"
327
+ details = "Angle of rotation"
328
+ default = 0
329
+ range = [-360,360]
330
+ }
331
+ option Scale {
332
+ type = Float
333
+ caption = "Scale"
334
+ details = "Scale factor applied to trap"
335
+ range = (0,)
336
+ default = 2
337
+ }
338
+ option Solid {
339
+ type = Boolean
340
+ caption = "Solid"
341
+ details = "Check to create solid trap"
342
+ default = False
343
+ }
344
+ option AlternateAngle {
345
+ type = Boolean
346
+ caption = "Alternate Angle"
347
+ details = "Use alternate angle calculation"
348
+ default = False
349
+ }
350
+ option LineWidth {
351
+ type = Float
352
+ caption = "Line Width"
353
+ details = "Extent of trap on either side of curve (> 0)"
354
+ range = (0,)
355
+ default = 0.00411522633744855967078189300413
356
+ enabled = ~Solid
357
+ }
358
+ divider {
359
+ caption = "U/V Controls"
360
+ }
361
+ option AbsU {
362
+ type = Float
363
+ caption = "Abs(U)"
364
+ details = "Magnitude of U (1-2)"
365
+ default = 1.1
366
+ range = [1,2]
367
+ }
368
+ option ArgU {
369
+ type = Float
370
+ caption = "Arg(U)"
371
+ details = "Angle of U"
372
+ default = 0
373
+ range = [-360,360]
374
+ }
375
+ option ArgV {
376
+ type = Float
377
+ caption = "Arg(V)"
378
+ details = "Angle of V"
379
+ default = 180
380
+ range = [-360,360]
381
+ }
382
+ divider {
383
+ caption = "Circle Controls"
384
+ }
385
+ option N {
386
+ type = IntegerEnum(3,12)
387
+ caption = "N"
388
+ details = "Number of base circles"
389
+ default = 4
390
+ }
391
+ option Steps {
392
+ type = IntegerEnum(1,16)
393
+ caption = "Steps"
394
+ details = "Number of inversion steps"
395
+ default = 4 ' you can increase to 7 now, but set RadiusMin > 0 to avoid memory issues
396
+ }
397
+ option Shift {
398
+ type = Boolean
399
+ caption = "Shift"
400
+ details = "Check to rotate initial chain by pi/N"
401
+ default = False
402
+ }
403
+ option RadiusMin {
404
+ type = Float
405
+ caption = "Radius Min"
406
+ details = "Minimum acceptable circle radius"
407
+ default = 0.001 ' set to a small positive value to prune tiny circles
408
+ range = [0,)
409
+ }
410
+ #define ShowLevel(Index)
411
+
412
+ divider {
413
+ caption = "Level #Index# Options"
414
+ }
415
+ option LR#Index# {
416
+ type = Boolean
417
+ caption = "Show Ring"
418
+ details = "Show ring of circles at level #Index#"
419
+ default = True
420
+ enabled = Steps >= #Index#
421
+ }
422
+ option LC#Index# {
423
+ type = Boolean
424
+ caption = "Show Center"
425
+ details = "Show center circle at level #Index#"
426
+ default = True
427
+ enabled = Steps >= #Index#
428
+ }
429
+ #end
430
+
431
+ #include ShowLevel("1")
432
+ #include ShowLevel("2")
433
+ #include ShowLevel("3")
434
+ #include ShowLevel("4")
435
+ #include ShowLevel("5")
436
+ #include ShowLevel("6")
437
+ #include ShowLevel("7")
438
+ #include ShowLevel("8")
439
+ #include ShowLevel("9")
440
+ #include ShowLevel("10")
441
+ #include ShowLevel("11")
442
+ #include ShowLevel("12")
443
+ #include ShowLevel("13")
444
+ #include ShowLevel("14")
445
+ #include ShowLevel("15")
446
+ #include ShowLevel("16")]]></Instructions>
447
+ <PropertyValueOverrides>
448
+ <Option Name="Solid" Type="BooleanOption" Value="True" />
449
+ <Option Name="Steps" Type="IntegerEnumOption" Value="5" />
450
+ <Option Name="RadiusMin" Type="FloatOption" Value="1E-05" />
451
+ <Option Name="LR1" Type="BooleanOption" Value="False" />
452
+ <Option Name="LR2" Type="BooleanOption" Value="False" />
453
+ <Option Name="LR3" Type="BooleanOption" Value="False" />
454
+ <Option Name="LR4" Type="BooleanOption" Value="False" />
455
+ <Option Name="LR5" Type="BooleanOption" Value="False" />
456
+ <Option Name="LR6" Type="BooleanOption" Value="False" />
457
+ <Option Name="LR7" Type="BooleanOption" Value="False" />
458
+ </PropertyValueOverrides>
459
+ </OrbitTrap>
460
+ </OrbitTrapItem>
461
+ </OrbitTrapArray>
462
+ <OrbitTrapMasterController Id="891d4c82-e603-4114-b2a3-f23668c471d1" Title="Blend">
463
+ <Instructions><![CDATA[
464
+ comment:
465
+
466
+ Blends the colors returned by controller 0 and
467
+ controller 1 based on a fixed value or a blending
468
+ curve defined by a sample point value.
469
+
470
+ color:
471
+
472
+ if (VariableBlend) {
473
+ r = Blend
474
+
475
+ if (Power <> 1) {
476
+ r = r^Power
477
+ }
478
+ if (Factor <> 1 || Offset <> 0) {
479
+ r = Clip(Offset + Factor*r)
480
+ }
481
+ if (Invert) {
482
+ r = 1-r
483
+ }
484
+ } else {
485
+ r = BlendPower
486
+ }
487
+ color = Color.Blend( \
488
+ ColorBlendType, \
489
+ Controller.Color(0), \
490
+ Controller.Color(1), \
491
+ r \
492
+ )
493
+
494
+ properties:
495
+
496
+ #include ColorBlendTypes
497
+
498
+ divider {
499
+ caption = "Color Blend Options"
500
+ }
501
+ option ColorBlendType {
502
+ type = ColorBlendTypes
503
+ caption = "Blend Type"
504
+ details = "Type of blend"
505
+ default = ColorBlendTypes.SoftLight
506
+ }
507
+ option VariableBlend {
508
+ type = Boolean
509
+ caption = "Variable Blend"
510
+ details = "Blend strength defined by blending curve"
511
+ default = True
512
+ }
513
+ divider {
514
+ caption = "Constant Blend"
515
+ enabled = ~VariableBlend
516
+ }
517
+ option BlendPower {
518
+ type = Float
519
+ caption = "Power"
520
+ details = "Power applied to blend (0-1)"
521
+ default = 1
522
+ range = [0,1]
523
+ enabled = ~VariableBlend
524
+ }
525
+ divider {
526
+ caption = "Variable Blend"
527
+ enabled = VariableBlend
528
+ }
529
+ option Blend {
530
+ type = SamplePointValue
531
+ caption = "Blend"
532
+ default = Sample.TrapDwell
533
+ enabled = VariableBlend
534
+ }
535
+ option Power {
536
+ type = Float
537
+ caption = "Power"
538
+ details = "Alters shape of blending curve (> 0)"
539
+ default = 0.5
540
+ range = (0,)
541
+ enabled = VariableBlend
542
+ }
543
+ option Factor {
544
+ type = Float
545
+ caption = "Factor"
546
+ details = "Alters shape of blending curve (> 0)"
547
+ default = 1
548
+ range = (0,)
549
+ enabled = VariableBlend
550
+ }
551
+ option Offset {
552
+ type = Float
553
+ caption = "Offset"
554
+ details = "Alters position of blending curve"
555
+ default = 0
556
+ enabled = VariableBlend
557
+ }
558
+ option Invert {
559
+ type = Boolean
560
+ caption = "Invert"
561
+ details = "Inverts blending curve"
562
+ default = True
563
+ enabled = VariableBlend
564
+ }
565
+ ]]></Instructions>
566
+ <PropertyValueOverrides>
567
+ <Option Name="ColorBlendType" Type="EnumOption" Value="ColorBlendTypes.Difference" />
568
+ <Option Name="BlendPower" Type="FloatOption" Value="0.3" />
569
+ <Option Name="Blend" Type="SamplePointValueOption" Value="Sample.TrapDelta" />
570
+ <Option Name="Power" Type="FloatOption" Value="0.555555555" />
571
+ </PropertyValueOverrides>
572
+ </OrbitTrapMasterController>
573
+ <OrbitTrapControllerArray>
574
+ <OrbitTrapController Id="29fbd0db-b470-4d0d-ad93-e4d5d937ef86" Title="ⵔ·ⵔ" ApplyDepth="False" Apply3D="False">
575
+ <GradientArray />
576
+ <TextureArray />
577
+ <Instructions><![CDATA[
578
+ comment:
579
+
580
+ This controller colors each trap based on the
581
+ property 'Index Map' and the point's 'Trap Dwell'
582
+ 'Trap Index' or 'Trap Delta'. You can define up to
583
+ 16 colors and these are mapped to the index map
584
+ values. Offset can be used to shift the set of
585
+ colors with respect to value 0.
586
+
587
+ If Cutouts are active, the trap is divided into
588
+ N sectors and a user defined percent of each
589
+ sector is inverted with respect to the 3D shading
590
+ effect. This gives the appearance that part of
591
+ the trap surface has been cutout or folded over.
592
+
593
+ The Cutout effect only looks good if the trap
594
+ is a solid shape. For example, the 'Shape',
595
+ 'Tangent Circles', 'Shapes' and 'Squares'
596
+ traps support a 'Solid' property that is used to
597
+ produce a solid figure. You should check this
598
+ property to display Cutouts.
599
+
600
+ Also note that the Cutout effect only works if
601
+ the trap's angle is given relative to the center
602
+ of the solid shape. This is always the case when
603
+ the trap is composed of a single shape. However,
604
+ when the trap is composed of several shapes arranged
605
+ in a pattern like the 'Tangent Circles', 'Shapes' and
606
+ 'Squares' traps, the angle is given relative to the
607
+ center of the pattern not the individual shapes.
608
+ In those cases, you will need to check the
609
+ 'Alternate Angle' property on the properties page
610
+ for the specific trap so the angle is given relative
611
+ to the individual shapes.
612
+
613
+ global:
614
+
615
+ const Complex angleShift = SectorAngle / 360
616
+ const Complex percentSolid = 1 - PercentCutout
617
+
618
+ color:
619
+
620
+ switch (IndexMap) {
621
+ case IndexMapTypes.TrapDwell: index = Sample.TrapDwellRaw
622
+ case IndexMapTypes.TrapIndex: index = Sample.TrapIndexRaw
623
+ case IndexMapTypes.TrapDelta: index = Sample.TrapDeltaRaw
624
+ case IndexMapTypes.Alternate1Index: index = Sample.Alternate1IndexRaw
625
+ }
626
+ color = Colors[WrapIndex(Offset + index, Count)]
627
+
628
+ if (ApplyCutouts) {
629
+ r = Sectors * Wrap(Sample.TrapAngle - angleShift)
630
+ r = r - Int(r)
631
+ v = Abs(Sample.TrapValue)
632
+
633
+ compositeHeight = IIf(r < percentSolid, v, Blend(0.75, 0.25, v))
634
+ } else {
635
+ compositeHeight = Sample.TrapValue
636
+ }
637
+
638
+ properties:
639
+
640
+ divider {
641
+ caption = "Index Map"
642
+ }
643
+ enum IndexMapTypes {
644
+ TrapDwell, "Trap Dwell"
645
+ TrapIndex, "Trap Index"
646
+ TrapDelta, "Trap Delta"
647
+ Alternate1Index , "Alternate 1 Index"
648
+ }
649
+ option IndexMap {
650
+ type = IndexMapTypes
651
+ caption = "Index Map"
652
+ details = "Color index map"
653
+ default = IndexMapTypes.TrapDwell
654
+ }
655
+ divider {
656
+ caption = "Color Map"
657
+ }
658
+ option Count {
659
+ type = IntegerEnum(1,32)
660
+ caption = "Count"
661
+ details = "Number of colors to use"
662
+ default = 8
663
+ }
664
+ option Colors {
665
+ type = ColorSet[Count]
666
+ caption = "Colors"
667
+ default = FF00AE, FF2020, FF8200, FFFF00, 00FF6C, 00FFFF, 4040FF, AE60FF
668
+ }
669
+ option Offset {
670
+ type = IntegerEnum(0,31)
671
+ caption = "Offset"
672
+ details = "Offset into set of colors"
673
+ default = 0
674
+ }
675
+ divider {
676
+ caption = "Cutouts (Solid traps only)"
677
+ }
678
+ option ApplyCutouts {
679
+ type = Boolean
680
+ caption = "Active"
681
+ details = "Activate cutout effects"
682
+ default = False
683
+ }
684
+ option Sectors {
685
+ type = IntegerEnum(2,16)
686
+ caption = "Sectors"
687
+ details = "Number of sectors"
688
+ default = 2
689
+ enabled = ApplyCutouts
690
+ }
691
+ option SectorAngle {
692
+ type = Float
693
+ caption = "Angle"
694
+ details = "Starting angle of 1st sector"
695
+ default = 0
696
+ range = [-360,360]
697
+ enabled = ApplyCutouts
698
+ }
699
+ option PercentCutout {
700
+ type = Float
701
+ caption = "Percent Cutout"
702
+ details = "Percent of sector that is cutout"
703
+ range = [0,1]
704
+ default = 0.5
705
+ enabled = ApplyCutouts
706
+ }
707
+ ]]></Instructions>
708
+ <PropertyValueOverrides>
709
+ <Option Name="IndexMap" Type="EnumOption" Value="IndexMapTypes.TrapDelta" />
710
+ <Option Name="Count" Type="IntegerEnumOption" Value="1" />
711
+ <Option Name="Colors" Type="ColorSetOption" Value="FFFFFF" />
712
+ </PropertyValueOverrides>
713
+ </OrbitTrapController>
714
+ </OrbitTrapControllerArray>
715
+ <SampleDataNormalizer>
716
+ <NormalizerDescriptor />
717
+ </SampleDataNormalizer>
718
+ <SampleDataNormalizer>
719
+ <NormalizerDescriptor />
720
+ </SampleDataNormalizer>
721
+ <SampleDataNormalizer>
722
+ <NormalizerDescriptor />
723
+ </SampleDataNormalizer>
724
+ </OrbitTrapInfo>
725
+ <TransformationArray>
726
+ <Transformation Id="7fc4bc2c-b961-4431-b074-277d7b29842b" Title="Identity">
727
+ <Instructions><![CDATA[]]></Instructions>
728
+ <PropertyValueOverrides />
729
+ </Transformation>
730
+ </TransformationArray>
731
+ <TriangleMetricSet>
732
+ <Instructions><![CDATA[metric = p1]]></Instructions>
733
+ <TriangleMetric />
734
+ <TriangleMetric />
735
+ <TriangleMetric />
736
+ </TriangleMetricSet>
737
+ </Fractal>
𑁍/⁜𑁍⁜/ꓨИꟼ.፨ꔹ፨.ⵔ·ⵔ⊚⸭⊚ⵔ·ⵔ.⅃MX...𖡼⁜𖡼𑁍𖡼⁜𖡼...XML.ⵔ·ⵔ⊚⸭⊚ⵔ·ⵔ.፨ꔹ፨.PNG ADDED

Git LFS Details

  • SHA256: fed5dd5b583a8863cba358ae24edba3e5a58ac448e08861de2ded173cd943e67
  • Pointer size: 131 Bytes
  • Size of remote file: 208 kB