-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpresetFractals.js
700 lines (598 loc) · 18.6 KB
/
presetFractals.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
/*
Classical Fractals:
Rhombus:
Quadruple
*/
function presetFractalTest(){
let presetFractal = new Fractal();
presetFractal.name = ["test"]
let aa = 0.4
let bb = 0.4
let cc = 0.3
let dd = 0.1
presetFractal.shapes=
[
[
[-aa,-bb,-aa,bb,],
[0,-bb,0,bb,],
[-aa,0,0,0,],//H
[cc-dd,-bb,cc+dd,-bb,],
[cc-dd,bb,cc+dd,bb,],
[cc,-bb,cc,bb,],//I
]
]
return presetFractal;
}
function presetFractalStar() {
let presetFractal = new Fractal();
presetFractal.name = ["star","stars","v","angle"];
// Side length of the star arms
let outerRadius = 0.5;
// let innerRadius = outerRadius * Math.sin(18 * Math.PI / 180) / Math.sin(54 * Math.PI / 180);
let vertices = [];
for (let i = 0; i < 5; i++) {
// let radius = i % 2 === 0 ? outerRadius : innerRadius;
let angle = (i * 2) * Math.PI / 5;
vertices.push([Math.cos(angle) * outerRadius, Math.sin(angle) * outerRadius]);
}
presetFractal.shapes = [
[
[vertices[0][0], vertices[0][1], vertices[2][0], vertices[2][1]],
[vertices[2][0], vertices[2][1], vertices[4][0], vertices[4][1]],
[vertices[4][0], vertices[4][1], vertices[1][0], vertices[1][1]],
[vertices[1][0], vertices[1][1], vertices[3][0], vertices[3][1]],
[vertices[3][0], vertices[3][1], vertices[0][0], vertices[0][1]],
]
];
return presetFractal;
}
function presetFractalSpiral() {
let presetFractal = new Fractal();
presetFractal.name = ["spiral","twist","twisted","rotate"];
let spiral = [];
let turns = 3;
let steps = 6 * turns;
let maxRadius = 0.5;
let previousX = 0;
let previousY = 0;
for (let i = 0; i <= steps; i++) {
let radius = maxRadius * (i / steps);
let angle = (i / steps) * 2 * Math.PI * turns;
let x = Math.cos(angle) * radius;
let y = Math.sin(angle) * radius;
if (i > 0) {
spiral.push([previousX, previousY, x, y]);
}
previousX = x;
previousY = y;
}
presetFractal.shapes = [spiral];
return presetFractal;
}
function presetFractalHeart() {
let presetFractal = new Fractal();
presetFractal.name = ["heart","love"];
let scale = 0.5;
presetFractal.shapes = [
[
[0, -0.3 * scale, 0.2 * scale, -0.3 * scale], // Top to right upper arc start
[0.2 * scale, -0.3 * scale, 0.4 * scale, -0.1 * scale], // Right upper arc
[0.4 * scale, -0.1 * scale, 0.2 * scale, 0.2 * scale], // Right down arc
[0.2 * scale, 0.2 * scale, 0, 0.3 * scale], // Right to bottom center
[0, 0.3 * scale, -0.2 * scale, 0.2 * scale], // Bottom center to left down arc
[-0.2 * scale, 0.2 * scale, -0.4 * scale, -0.1 * scale], // Left down arc
[-0.4 * scale, -0.1 * scale, -0.2 * scale, -0.3 * scale], // Left upper arc
[-0.2 * scale, -0.3 * scale, 0, -0.3 * scale] // Left upper arc end to top
]
];
return presetFractal;
}
function presetFractalDiamond() {
let presetFractal = new Fractal();
presetFractal.name = ["diamond","sharp"];
let width = 0.4;
let height = 0.6;
presetFractal.shapes = [
[
[0, -height, width, 0], // Top to right
[width, 0, 0, height], // Right to bottom
[0, height, -width, 0], // Bottom to left
[-width, 0, 0, -height] // Left to top
]
];
return presetFractal;
}
function presetFractalCross() {
let presetFractal = new Fractal();
presetFractal.name = ["cross","web"];
let armLength = 0.3;
let armWidth = 0.1;
presetFractal.shapes = [
[
[-armWidth, armLength, armWidth, armLength], // Top horizontal line
[armWidth, armLength, armWidth, -armLength], // Right vertical line
[armWidth, -armLength, -armWidth, -armLength], // Bottom horizontal line
[-armWidth, -armLength, -armWidth, armLength] // Left vertical line
]
];
return presetFractal;
}
function presetFractalArrow() {
let presetFractal = new Fractal();
presetFractal.name = ["arrow","direction"];
let baseWidth = 0.4;
let height = 0.5;
let headWidth = 0.3;
presetFractal.shapes = [
[
[-baseWidth, 0, baseWidth, 0], // Base line
[baseWidth, 0, headWidth, -height], // Right side to tip
[headWidth, -height, -headWidth, -height], // Tip to left side of arrowhead
[-headWidth, -height, -baseWidth, 0] // Left side to base
]
];
return presetFractal;
}
function presetFractalVesicaPiscis() {
let presetFractal = new Fractal();
presetFractal.name = ["vesica","Piscis","rhombus","kite"];
let radius = 0.4; // radius of the circles
let d = radius; // distance between the centers of the two circles
// Points of intersection of two circles
let h = Math.sqrt(radius * radius - (d / 2) * (d / 2));
let p1x = -d / 2;
let p1y = h;
let p2x = d / 2;
let p2y = h;
// Adjusting for the simple line segments that approximate the arcs
let p3x = 0;
let p3y = -radius;
let p4x = 0;
let p4y = radius;
presetFractal.shapes = [
[
[p1x, p1y, p2x, p2y], // Upper intersection arc
[p2x, p2y, p3x, p3y], // Right side of right circle
[p3x, p3y, p1x, p1y], // Left side of left circle
[p1x, p1y, p4x, p4y], // Left overlap arc
[p4x, p4y, p2x, p2y] // Right overlap arc
]
];
return presetFractal;
}
function presetFractalCubicIllusion() {
let presetFractal = new Fractal();
presetFractal.name = ["cube","square","cubic"];
let side = 0.3; // Define the side length of the cube's face
// Coordinates for the cube illusion
let frontTopLeft = [-side, side];
let frontTopRight = [side, side];
let frontBottomLeft = [-side, -side];
let frontBottomRight = [side, -side];
let backTopLeft = [-side / 2, side / 2];
let backTopRight = [side / 2, side / 2];
let backBottomLeft = [-side / 2, -side / 2];
let backBottomRight = [side / 2, -side / 2];
presetFractal.shapes = [
[
// Front face
[frontTopLeft[0], frontTopLeft[1], frontTopRight[0], frontTopRight[1]],
[frontTopRight[0], frontTopRight[1], frontBottomRight[0], frontBottomRight[1]],
[frontBottomRight[0], frontBottomRight[1], frontBottomLeft[0], frontBottomLeft[1]],
[frontBottomLeft[0], frontBottomLeft[1], frontTopLeft[0], frontTopLeft[1]],
// Back face
[backTopLeft[0], backTopLeft[1], backTopRight[0], backTopRight[1]],
[backTopRight[0], backTopRight[1], backBottomRight[0], backBottomRight[1]],
[backBottomRight[0], backBottomRight[1], backBottomLeft[0], backBottomLeft[1]],
[backBottomLeft[0], backBottomLeft[1], backTopLeft[0], backTopLeft[1]],
// Connecting lines
[frontTopLeft[0], frontTopLeft[1], backTopLeft[0], backTopLeft[1]],
[frontTopRight[0], frontTopRight[1], backTopRight[0], backTopRight[1]],
[frontBottomRight[0], frontBottomRight[1], backBottomRight[0], backBottomRight[1]],
[frontBottomLeft[0], frontBottomLeft[1], backBottomLeft[0], backBottomLeft[1]]
]
];
return presetFractal;
}
function presetFractalWindmill() {
let presetFractal = new Fractal();
presetFractal.name = ["windmill","cross","rotate","angle"];
presetFractal.shapes = [
[
[0, 0.5, 0.25, 0.25], // Top to right top
[0.25, 0.25, 0, 0], // Right top to right
[0, 0.5, 0, 0], // Right top to right
[0.5, 0, 0.25, -0.25], // Right to right bottom
[0.25, -0.25, 0, 0], // Right bottom to bottom
[0.5, 0, 0, 0], // Right bottom to bottom
[0, -0.5, -0.25, -0.25], // Bottom to left bottom
[-0.25, -0.25, 0, 0], // Left bottom to left
[0, -0.5, 0, 0], // Left bottom to left
[-0.5, 0, -0.25, 0.25], // Left to left top
[-0.25, 0.25, 0, -0.5] // Left top to top
[-0.5, 0, 0, 0] // Left top to top
]
];
return presetFractal;
}
function presetFractalOpticalGrid() {
let presetFractal = new Fractal();
presetFractal.name = ["optical","optic"];
let offset = 0.25; // Offset for creating the grid pattern
presetFractal.shapes = [
[
// Outer square
[-0.5, 0, 0, 0.5], // Left to top
[0, 0.5, 0.5, 0], // Top to right
[0.5, 0, 0, -0.5], // Right to bottom
[0, -0.5, -0.5, 0], // Bottom to left
// Inner diagonals to create depth illusion
[-0.5, 0, 0, -0.5],
[0.5, 0, 0, 0.5],
[0, 0.5, -0.5, 0],
[0, -0.5, 0.5, 0],
// Inner square (shifted)
[-0.25, 0.25, 0.25, 0.25],
[0.25, 0.25, 0.25, -0.25],
[0.25, -0.25, -0.25, -0.25],
[-0.25, -0.25, -0.25, 0.25]
]
];
return presetFractal;
}
function presetFractalFlower() {
let presetFractal = new Fractal();
presetFractal.name = ["flower","grass","bush","sunny"];
let layers = 4;
let radius = 0.5;
let angleStep = Math.PI / layers;
let shapes = [];
for (let i = 0; i < 2 * Math.PI; i += angleStep) {
shapes.push([
[0, 0, Math.cos(i) * radius, Math.sin(i) * radius],
[0, 0, Math.cos(i + angleStep / 2) * radius / 2, Math.sin(i + angleStep / 2) * radius / 2]
]);
}
presetFractal.shapes = [shapes.flat()];
return presetFractal;
}
function presetFractalSpiralWeb() {
let presetFractal = new Fractal();
presetFractal.name = ["spiral","web"];
let turns = 5;
let steps = 25; // Increase for smoother spiral
let maxRadius = 0.5;
let spiral = [];
let radialLines = [];
for (let i = 0; i <= steps; i++) {
let radius = maxRadius * (i / steps);
let angle = (i / steps) * 2 * Math.PI * turns;
let x = Math.cos(angle) * radius;
let y = Math.sin(angle) * radius;
if (i > 0) {
spiral.push([spiral[spiral.length - 1][2], spiral[spiral.length - 1][3], x, y]);
} else {
spiral.push([0, 0, x, y]); // Start from center
}
}
for (let i = 0; i < 4; i++) { // 4 radial lines
let angle = Math.PI / 2 * i;
radialLines.push([0, 0, Math.cos(angle) * maxRadius, Math.sin(angle) * maxRadius]);
}
let combined = [...spiral, ...radialLines]
presetFractal.shapes = [radialLines];
return presetFractal;
}
function presetFractalPentagon() {
let presetFractal = new Fractal();
presetFractal.name = ["pentagon","five","geometry"];
// Side length of the pentagon
let sideLength = 0.8;
let angle = 72 * Math.PI / 180; // Angle between vertices in radians (360 degrees / 5)
// Calculate vertex coordinates based on regular pentagon geometry
let vertices = [];
for (let i = 0; i < 5; i++) {
// Calculate vertex positions
let x = Math.cos(i * angle) * sideLength;
let y = Math.sin(i * angle) * sideLength;
vertices.push([x, y]);
}
// Define the shapes (lines) using the vertices
presetFractal.shapes = [
[
[vertices[0][0], vertices[0][1], vertices[1][0], vertices[1][1]],
[vertices[1][0], vertices[1][1], vertices[2][0], vertices[2][1]],
[vertices[2][0], vertices[2][1], vertices[3][0], vertices[3][1]],
[vertices[3][0], vertices[3][1], vertices[4][0], vertices[4][1]],
[vertices[4][0], vertices[4][1], vertices[0][0], vertices[0][1]],
]
];
return presetFractal;
}
function presetFractalHexagon() {
let presetFractal = new Fractal();
presetFractal.name = ["hexagon","six","geometry"];
// Side length of the hexagon
let sideLength = 0.8;
// Calculate offsets based on regular hexagon geometry
let h = sideLength * Math.sqrt(3) / 2; // Horizontal distance to vertex from center
presetFractal.shapes = [
[
[0, sideLength, h, sideLength / 2], // Line from right to top-right
[h, sideLength / 2, h, -sideLength / 2], // Line from top-right to bottom-right
[h, -sideLength / 2, 0, -sideLength], // Line from bottom-right to bottom-left
[0, -sideLength, -h, -sideLength / 2], // Line from bottom-left to top-left
[-h, -sideLength / 2, -h, sideLength / 2], // Line from top-left to bottom-left
[-h, sideLength / 2, 0, sideLength] // Line from bottom-left to right
]
];
return presetFractal;
}
function presetFractalDoubleSideRainbow(){
let presetFractal = new Fractal();
presetFractal.name = ["rainbow","double","wave","sea","ocean","ripple"]
presetFractal.shapes=
[
[
[0.2,-0.2,0.2,0.2,PI/2],
[0.4,-0.4,0.4,0.4,PI/2],
[0.6,-0.6,0.6,0.6,PI/2],
[0.8,-0.8,0.8,0.8,PI/2], //right side
[-0.2,-0.2,-0.2,0.2,PI/2],
[-0.4,-0.4,-0.4,0.4,PI/2],
[-0.6,-0.6,-0.6,0.6,PI/2],
[-0.8,-0.8,-0.8,0.8,PI/2], //left side
]
]
return presetFractal;
}
function presetFractalSingleSideRainbow(){
let presetFractal = new Fractal();
presetFractal.name = ["rainbow","single","wave","sea","ocean","ripple"]
let aa = 1.4
let bb = 0.4
let cc = 0.3
let dd = 0.1
presetFractal.shapes=
[
[
[-0.2,-0.2,-0.2,0.2,PI/2],
[-0.4,-0.4,-0.4,0.4,PI/2],
[-0.6,-0.6,-0.6,0.6,PI/2],
[-0.8,-0.8,-0.8,0.8,PI/2], //left side
]
]
return presetFractal;
}
function presetFractalHi(){
let presetFractal = new Fractal();
presetFractal.name = ["morning","afternoon","how","hello","hey","Mandala","good"]
let aa = 0.4
let bb = 0.4
let cc = 0.3
let dd = 0.1
presetFractal.shapes=
[
[
[-aa,-bb,-aa,bb,],
[0,-bb,0,bb,],
[-aa,0,0,0,],//H
[cc-dd,-bb,cc+dd,-bb,],
[cc-dd,bb,cc+dd,bb,],
[cc,-bb,cc,bb,],//I
]
]
return presetFractal;
}
function presetFractalMoon(){
let presetFractal = new Fractal();
presetFractal.name = ["moon","wave","tide"]
presetFractal.shapes=
[
[
[0,-0.5,0,0.5,PI],
[0,-0.5,0,0.5,PI/1.5],/* layer1: 0.5; 3->3 */
]
]
return presetFractal;
}
function presetFractalArrowTriangle(){
let presetFractal = new Fractal();
presetFractal.name = ["triangle","arrow","direction"]
presetFractal.shapes=
[
[
[0,-0.5,0.4,0.3,],
[0,-0.5,-0.4,0.3,],/* Hypotenuse */
[0,0.5,0.4,0.3,],
[0,0.5,-0.4,0.3,],/* Hypotenuse */
[0.4,0.3,-0.4,0.3,],
[0,-0.5,0,0.5,],
]
]
return presetFractal;
}
function presetFractalStandardTriangle(){
let presetFractal = new Fractal();
presetFractal.name = ["triangle","standard","three","geometry","rain","rainy"]
presetFractal.shapes=
[
[
[0,-0.5,0.4,0.3,],
[0,-0.5,-0.4,0.3,],/* Hypotenuse */
[0,0.5,0.4,0.3,],
]
]
return presetFractal;
}
function presetFractalQuadrupleCircle(){
let presetFractal = new Fractal();
presetFractal.name = ["circle","circles","four","quadruple","ripple"]
presetFractal.shapes=
[
[
[0,-0.5,0,0.5,PI],
[0,0.5,0,-0.5,PI],/* layer1: 0.5; 3->3 */
[0,-0.49,0,0.49,PI],
[0,0.49,0,-0.49,PI],/* layer1: 0.5; 3->3 */
[0,-0.48,0,0.48,PI],
[0,0.48,0,-0.48,PI],/* layer1: 0.5; 3->3 */
[0,-0.3,0,0.3,PI],
[0,0.3,0,-0.3,PI],/* layer2: 0.5/1.7; */
[0,-0.125,0,0.125,PI],
[0,0.125,0,-0.125,PI],/* layer3: 0.5/4; */
[0,-0.05,0,0.05,PI],
[0,0.05,0,-0.05,PI],/* layer2: 0.5/10; */
]
]
return presetFractal;
}
function presetFractalStrokeWeightRhombus(){
let presetFractal = new Fractal();
presetFractal.name = ["rhombus","strokeweight","classical"]
presetFractal.shapes=
[
[
[0,-0.5,0.5,0,3,10],
[0,-0.5,-0.5,0,3,10],
[0,0.5,0.5,0,3,10],
[0,0.5,-0.5,0,3,10],/* layer1: 0.5 */
[0,-0.3,0.3,0,2,6],
[0,-0.3,-0.3,0,2,6],
[0,0.3,0.3,0,2,6],
[0,0.3,-0.3,0,2,6],/* layer2: 0.3 */
[0,-0.3,0.2,0,1,4],
[0,-0.3,-0.2,0,1,4],
[0,0.2,0.2,0,1,4],
[0,0.2,-0.2,0,1,4],/* layer3: 0.2 top remaining */
[0,-0.3,0.1,0,1,2],
[0,-0.3,-0.1,0,1,2],
[0,0.2,0.1,0,1,2],
[0,0.2,-0.1,0,1,2],/* layer1: 0.1 top & buttom remaining */
]
]
return presetFractal;
}
function presetFractalSimpleRhombus(){
let presetFractal = new Fractal();
presetFractal.name = ["rhombus","simple"]
presetFractal.shapes=
[
[
[0,-0.5,0.5,0,],
[0,-0.5,-0.5,0,],
[0,0.5,0.5,0,],
[0,0.5,-0.5,0,],/* layer1: 0.5 */
[0,-0.3,0.3,0,],
[0,-0.3,-0.3,0,],
[0,0.3,0.3,0,],
[0,0.3,-0.3,0,],/* layer2: 0.3 */
[0,-0.3,0.2,0,],
[0,-0.3,-0.2,0,],
[0,0.2,0.2,0,],
[0,0.2,-0.2,0,],/* layer3: 0.2 top remaining */
[0,-0.3,0.1,0,],
[0,-0.3,-0.1,0,],
[0,0.2,0.1,0,],
[0,0.2,-0.1,0,],/* layer1: 0.1 top & buttom remaining */
]
]
return presetFractal;
}
/*
----------------------------------
Special Fractals:
1. Smile
2. QuestionMark
3. Letter A
4. DiagonalBox
5. Casual
*/
function presetFractalSmile() {
let presetFractal = new Fractal(0,0,0,standardBorderDistance);//placeholders
presetFractal.name = ["test","smile","laugh","happy"]
presetFractal.shapes=
[
[
[-0.6,-0.2,-0.2,-0.2,PI],
[0.2,-0.2,0.6,-0.2,PI],
[0.6,0.2,-0.6,0.2,PI],
[0.6,0.2,-0.6,0.2]
]
]
return presetFractal;
}
function presetFractalAngry() {
let presetFractal = new Fractal(0,0,0,standardBorderDistance);//placeholders
presetFractal.name = ["test","smile","laugh","happy"]
presetFractal.shapes=
[
[
[-0.6,-0.2,-0.2,-0.2,PI],
[0.2,-0.2,0.6,-0.2,PI],
[0.6,0.2,-0.6,0.2,PI],
[0.6,0.2,-0.6,0.2]
]
]
return presetFractal;
}
function presetFractalDiagonalBox() {
let presetFractal = new Fractal();
presetFractal.name = ["special","box","diagonal","inclined"]
presetFractal.shapes=
[
[
[-0.8,-0.8,-0.8,0.8],
[-0.8,0.8,0.8,0.8],
[0.8,0.8,0.8,-0.8],
[0.8,-0.8,-0.8,-0.8],
[0.8,0.8,-0.8,-0.8],
[0.8,-0.8,-0.8,0.8]
]
]
return presetFractal;
}
function presetFractalA() {
let presetFractal = new Fractal();
presetFractal.name = ["special","a","letter","letters"]
presetFractal.shapes=
[
[
[-0.3,0.5,0,-0.5],
[0.3,0.5,0,-0.5],
[-0.15,0,0.15,0]
]
]
return presetFractal;
}
function presetFractalQuestionMark() {
let presetFractal = new Fractal();
presetFractal.name = ["special","question","wonder","curious","stupid","understand"]
presetFractal.shapes=
[
[
[-0.3,-0.15,0.3,-0.15,PI],
[0.3,-0.15,0,0.15,PI/2],
[0,0.15,0,0.3],
[-0.1,0.5,0.1,0.5,PI],
[0.1,0.5,-0.1,0.5,PI],
]
]
return presetFractal;
}
function presetFractalCasual() {
let presetFractal = new Fractal();
presetFractal.name = ["special","casual","random","strange"]
presetFractal.shapes=
[
[
[-0.5,-0.3,-0.8,0.8],
[-0.4,0.4,0.8,0.8],
[0.3,0.5,0.8,-0.8],
[0.2,-0.6,-0.8,-0.8],
[0.1,0.7,-0.8,-0.8],
[0,-0.8,-0.8,0.8]
]
]
return presetFractal;
}