-
Notifications
You must be signed in to change notification settings - Fork 0
/
CG.html
582 lines (497 loc) · 79.2 KB
/
CG.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-SLCHF8P25K"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-SLCHF8P25K');
</script>
<script type="text/javascript" data-cmp-ab="1" src="https://cdn.consentmanager.net/delivery/autoblocking/31566d9c7185e.js" data-cmp-host="a.delivery.consentmanager.net" data-cmp-cdn="cdn.consentmanager.net" data-cmp-codesrc="16"></script>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-NJ2KPZTP');</script>
<!-- End Google Tag Manager -->
<title>graphic works</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="Content-Style-Type" content="text/css">
<table>
<tr>
<td background="VJ.gif">
<h1><font color="white"><font>CG</font></h1>
<!-- import the webpage's stylesheet -->
<link rel="stylesheet" href="/style.css" />
<!-- import the latest version of hydra synth-->
<script src="https://unpkg.com/hydra-synth"></script>
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NJ2KPZTP"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<button onclick="osc(2,1,300).diff(gradient(1).blend(solid([0,1,0],[0,1,1],[1,0,0],[1,0,1],[1,1,0],[1,1,1],0.1)).diff(noise(1))).mult(shape([3,4,5,6,7,8,9,10,11,12],[0.7],[0.4,0.5,0.6,0.7,0.8])).mult(voronoi(100,1,1)).modulateRotate(o0).modulateScale(o0).blend(o0).scale(()=>(a.fft[0]*0.5+1)).out()"> Under the sea </button>
<button onclick="production()"> Production </button>
<button onclick="carpet()"> Carpet </button>
<button onclick="flower()"> Flower </button>
<button onclick="donut()"> Donut </button>
<button onclick="slowmotion()"> Slow motion </button>
<br>
<button onclick="simulationfromeachperspectiveofabloodvesselexpressedin2dthatlookslike3d()"> Simulation from each perspective of a blood vessel expressed in 2D that looks like 3D </button>
<br>
<button onclick="movementsatdifferenttimings1()"> Movements at different timings (version 1) </button>
<button onclick="movementsatdifferenttimings2()"> Movements at different timings (version 2) </button>
<br>
<button onclick="graphicswitchwhitoutp5js()"> Graphic switch (without p5.js version) </button>
<button onclick="graphicswitchedited()"> Graphic switch (edited version) </button>
<br>
<button onclick="moonmodulation()"> Moon modulation </button>
<button onclick="limitedpatterns()"> Limited patterns </button>
<button onclick="colofulcells()"> Colorful cells </button>
<br>
<button onclick="electricscoreboardandsquaresmoke()"> Electric scoreboard and square smoke </button>
<button onclick="seamofwavelightversion()"> Seam of wave (light version) </button>
<br>
<button onclick="seamofwavedarkversion()"> Seam of wave (dark version) </button>
<button onclick="marbleswithpaintoverandflash()"> Marbles with paintover and flash </button>
<br>
<button onclick="glossofdropandsphereescalator()"> Gloss of drop and sphere escalator </button>
<button onclick="kaleidcoaster()"> Kaleid coaster </button>
<br>
<button onclick="imaginetheimageofthesea()"> Imagine the image of the sea </button>
<button onclick="surge()"> Surge </button>
<button onclick="surgepaintoverversion()"> Surge (paintover version) </button>
<br>
<button onclick="electriccircuit()"> Electric circuit </button>
<button onclick="retromodern()"> Retro modern </button>
<button onclick="blurandpaintover()"> Blur and paintover </button>
<br>
<button onclick="likealacesheercurtainthatcirclesdesignshiftsandpopsout()"> Like a lace sheer curtain that circles design shifts and pops out </button>
<br>
<button onclick="vividinvertrosemodulation()"> Vivid invert rose modulation </button>
<button onclick="colorandactivefluidassignment()"> Color and active fluid assignment </button>
<br>
<button onclick="fireandsmokestainedinspectralcolors()"> Fire and smoke stained in spectral colors </button>
<button onclick="rhombusswirl()"> Rhombus swirl </button>
<br>
<button onclick="unusuallyshapedtreetrunkforestandcolorfulzebra()"> Unusually shaped tree trunk forest and coloful zebra </button>
<button onclick="waveandlaser()"> Wave and laser </button>
<button onclick="bulge()"> Bulge </button>
<br>
<button onclick="movingcoloredglassthatreflectspolkadotsandpuddles()"> Moving colored glass that reflects polka dots and puddles </button>
<br>
<button onclick="transparent()"> Transparent </button>
<button onclick="partialrepresentation()"> Partial representation </button>
<br>
<button onclick="partialrepresentationvideoversionthatispileduppaintoverandshrinked()"> Partial representation (video version that is piled up paintover and shrinked) </button>
<br>
<button onclick="partialrepresentationvideoversionthatispileduppaintoverrotatedandshrinked()"> Partial representation (video version that is piled up paintover, rotated and shrinked) </button>
<br>
<button onclick="partialrepresentationanothervideoversionthatispileduppaintoverrotatedandshrinked()"> Partial representation (another video version that is piled up paintover, rotated and shrinked) </button>
<br>
<button onclick="partialrepresentationtheothervideoversion1thatispileduppaintoverrotatedandshrinked()"> Partial representation (the other video version 1 that is piled up paintover, rotated and shrinked) </button>
<br>
<button onclick="partialrepresentationtheothervideoversion2thatispileduppaintoverrotatedandshrinked()"> Partial representation (the other video version 2 that is piled up paintover, rotated and shrinked) </button>
<br>
<button onclick="illusion()"> Illusion </button>
<button onclick="darkpaintover()"> Dark paintover </button>
<button onclick="coloredwindowsmovement()"> Colored windows movement </button>
<button onclick="noisewave()"> Noise wave </button>
<br>
<button onclick="simplebutcomplexanimationversion1()"> Simple but complex animation (version 1) </button>
<button onclick="simplebutcomplexanimationversion2()"> Simple but complex animation (version 2) </button>
<br>
<button onclick="movementmodulation()"> Movement modulation </button>
<button onclick="betweenpixelationandposterization()"> Between pixelation and posterization </button>
<br>
<button onclick="coloredwaveandthingslikevisualizedmovablesoundwave()"> Colored wave and things like visualized movable sound wave </button>
<br>
<button onclick="jagandslide()"> Jag and slide </button>
<button onclick="modulatedballpuzzlewithringofwater()"> Modulated ball puzzle with ring of water </button>
<button onclick="diffusionandcontraction()"> Diffusion and contraction </button>
<br>
<button onclick="runalittlecodeasanoteonmysmartphoneatnight()"> Run a little code as a note on my smartphone at night </button>
<br>
<button onclick="pentagon()"> Pentagon </button>
<button onclick="fluctuation()"> Fluctuation </button>
<button onclick="squareplanets()"> Square planets </button>
<button onclick="padcontrol()"> Pad control </button>
<button onclick="bitrate()"> Bitrate </button>
<br>
<button onclick="leverandferriswheel()"> Lever and ferris wheel </button>
<button onclick="circleandoval()"> Circle and oval </button>
<button onclick="smooth()"> Smooth </button>
<button onclick="fadingshapes()"> Fading shapes </button>
<br>
<button onclick="circlemodulationversion1()"> Circle modulation (version 1) </button>
<button onclick="circlemodulationversion2()"> Circle modulation (version 2) </button>
<button onclick="circlemodulationversion3()"> Circle modulation (version 3) </button>
<br>
<button onclick="circlemodulationversion4()"> Circle modulation (version 4) </button>
<button onclick="circlemodulationversion5()"> Circle modulation (version 5) </button>
<button onclick="circlemodulationversion6()"> Circle modulation (version 6) </button>
<br>
<button onclick="conveyor()"> Conveyor </button>
<button onclick="ellipsepaintover()"> Ellipse paintover </button>
<button onclick="movablehologramcomposedofrectangles()"> Movable hologram composed of rectangles </button>
<br>
<button onclick="workmadeduringabittime()"> Work made during a bit time </button>
<br>
<button onclick="enlargementandcontractionoftheinnerandouterdiametersofacircle()"> Enlargement and contraction of the inner and outer diameters of a circle </button>
<br>
<button onclick="ringcomposedofpoints()"> Ring composed of points </button>
<button onclick="flashingswirlcomposedofpoints()"> Flashing swirl composed of points </button>
<button onclick="pond()"> Pond </button>
<br>
<canvas id="myCanvas" width="360px" height="360px"></canvas>
<script>
// create a new hydra-synth instance
var hydra = new Hydra({
canvas: document.getElementById("myCanvas")
})
width = window.prompt("Enter screen width value.(Default value is 360.)", "");
height = window.prompt("Enter screen height value.(Default value is 360.)", "");
if (0 <= width && 0 <= height) {
setResolution(width,height);
} else {
window.alert("Please enter value greater than or equal to 0");
setResolution(window.innerWidth,window.innerHeight);
}
osc(10,0.5,300).diff(gradient(1)).diff(solid([0,0,0,0,1,1,1,1].smooth(),[0,0,1,1,0,0,1,1].smooth(),[0,1,0,1,0,1,0,1].smooth())).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).invert().out()
function production() {
noise(1).add(osc()).modulate(osc().color(()=>(a.fft[0]*10+2),()=>(a.fft[1]*20+3),()=>(a.fft[2]*30+4)).luma().colorama()).kaleid().modulateScale(osc(()=>(a.fft[3]*4+5))).modulateRotate(osc(()=>(a.fft[4]*5+6))).out(o1)
gradient(2.5).invert(1).saturate().scrollX().repeatX().scrollY().repeatY().kaleid(()=>(a.fft[3]*4+5)).modulateScale(osc(()=>(a.fft[5]*6+7))).modulateHue(osc(()=>(a.fft[4]*0.5+6))).modulateRotate(osc(()=>(a.fft[6]*7+8))).mask(voronoi(()=>(a.fft[0]*0.1+35),()=>(a.fft[1]*0.00002+1.5),()=>(a.fft[2]*3+4)),1,1,1).colorama().mult(osc([1],[2],[300].fast(0.5))).contrast(30).out(o3)
voronoi().scale(()=>(a.fft[3]*0.04+0.5)).rotate(()=>(a.fft[2]*0.03+0.04)).mask(osc(1,2,300).add(noise(1))).add(shape(100).scale(()=>(a.fft[1]*0.2+0.3))).add(gradient(1)).add(shape(4).scale().scale().scale().colorama().mask(osc(100,2,30).add(noise(10)).kaleid().modulateScale(osc()).modulateRotate(osc()))).out(o2)
osc(1,2,300).add(noise(1)).shift(()=>(a.fft[1]*0.2+0.3),()=>(a.fft[2]*0.3+0.4),()=>(a.fft[3]*0.4+0.5),()=>(a.fft[4]*0.5+0.6)).kaleid(()=>(a.fft[5]*0.6+0.7)).scrollX().scrollY().modulatePixelate(osc(a.fft[6]*7+80)).out(o0)
render()
}
function carpet() {
shape(1).blend(osc(2,1,300)).diff(gradient(1)).mult(shape([4],[0.1,0.2,0.3,0.4,0.5],[0.5,0.6,0.7])).modulatePixelate(solid([0,1,0],[0,1,1],[1,0,0],[1,0,1],[1,1,0],[1,1,1],0.1),50,50).modulateScale(voronoi(0.5,1,5)).modulateRotate(noise(1)).out()
}
function flower() {
shape([3,4,5,6,7,8,9,10,11,12]).diff(voronoi([1,2,3,4,5])).diff(gradient()).diff(osc(1,2,300)).modulateKaleid(o0).modulateRotate(o0).blend(o0).blend(o0).blend(o0).blend(o0).blend(o0).out()
}
function donut() {
osc(10,time=0.1).kaleid(100,speed=-3).blend(gradient(1),2.5,fps=10000).modulate(o0,frame=0.01).out()
}
function slowmotion() {
shape([1,2],0.1,0.5).modulate(voronoi(20,5,fps=7.5)).modulateKaleid(noise(5),[3,4,5,6,7,8,9,10,11,12],speed=0.5).modulateRotate(osc(10,0.1,100,fast=0.1)).colorama(2).luma(0.01).color([0,0,0,1,1,1,1],[0,1,1,0,0,1,1],[1,0,1,0,1,0,1],smooth=50).diff(solid([0,1,0],[0,1,1],[1,0,0],[1,0,1],[1,1,0],[1,1,1],frame=10).blend(osc(1,2,300)).mult(gradient(1,time=2.5))).out(o0)
}
function simulationfromeachperspectiveofabloodvesselexpressedin2dthatlookslike3d() {
voronoi(10).repeat(()=>Math.sin(time),()=>Math.cos(time)).scroll(()=>Math.cos(time),()=>Math.sin(time)).rotate(()=>Math.tan(time)).layer(shape(2,[0,0.05].smooth(),[0,0.25].smooth()).mult(solid([0,1].smooth(),0,0)).modulate(noise([0,10].ease('sin')).mult(noise([0,5].ease('easeInOut')))).modulateScale(osc(3)).scale(1)).contrast(2).out(o0)
voronoi(10).repeat(()=>Math.sin(time),()=>Math.cos(time)).scroll(()=>Math.cos(time),()=>Math.sin(time)).rotate(()=>Math.tan(time)).layer(shape(2,[0,0.05].smooth(),[0,0.25].smooth()).mult(solid([0,1].smooth(),0,0)).modulate(noise([0,10].ease('sin')).mult(noise([0,5].ease('easeInOut')))).modulateScale(osc(3)).scale(1)).rotate(()=>Math.sin(time)).contrast(2).out(o1)
voronoi(10).repeat(()=>Math.sin(time),()=>Math.cos(time)).scroll(()=>Math.cos(time),()=>Math.sin(time)).rotate(()=>Math.tan(time)).layer(shape(2,[0,0.05].smooth(),[0,0.25].smooth()).mult(solid([0,1].smooth(),0,0)).modulate(noise([0,10].ease('sin')).mult(noise([0,5].ease('easeInOut')))).modulateScale(osc(3)).scale(1)).rotate(()=>Math.cos(time)).contrast(2).out(o2)
voronoi(10).repeat(()=>Math.sin(time),()=>Math.cos(time)).scroll(()=>Math.cos(time),()=>Math.sin(time)).rotate(()=>Math.tan(time)).layer(shape(2,[0,0.05].smooth(),[0,0.25].smooth()).mult(solid([0,1].smooth(),0,0)).modulate(noise([0,10].ease('sin')).mult(noise([0,5].ease('easeInOut')))).modulateScale(osc(3)).scale(1)).rotate(1,1).contrast(2).out(o3)
render()
}
function movementsatdifferenttimings1() {
voronoi(20,1,[0,5].smooth()).modulatePixelate(shape([3,7].smooth(0.1),[0,1].ease('sin'),[1,0].ease('easeInOut')).scale([0.5,1.5].smooth(0.1))).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,0,0,0,1,1,1,1].smooth(),[0,0,1,1,0,0,1,1].smooth(),[0,1,0,1,0,1,0,1].smooth())).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).invert([0,1].smooth()).kaleid([3,7].smooth(0.1))).scale(0.5).rotate([0,1].ease('sin'),[0,1].ease('easeInOut')).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll(()=>Math.tan(time),()=>Math.tan(time))).repeat(2,2).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll(()=>Math.sin(time),()=>Math.cos(time))).repeat(2,2).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll([0,2].smooth(),[2,0].smooth())).repeat(2,2).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll([2,0].smooth(),[0,2].smooth())).repeat(2,2).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll([0,2].smooth(),[0,2].smooth())).repeat(2,2).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll([2,0].smooth(),[2,0].smooth())).blend(voronoi(20,1,[2,0].smooth()).mult(noise(5).thresh()).mult(osc(1,2,300).diff(gradient(1)).color([0,0,0,1,1,1,1].smooth(),[0,1,1,0,0,1,1].smooth(),[1,0,1,0,1,0,1].smooth()).hue(()=>Math.cos(time),()=>Math.tan(time),()=>Math.sin(time)).invert(1))).contrast(5).brightness(2).modulateRotate(shape([7,3].smooth(0.1),[1,0].ease('easeInOut'),[0,1].ease('sin')).scale([1,0].smooth(0.1)),()=>Math.tan(time/16)).modulateScale(osc(16)).scale(8).out()
}
function movementsatdifferenttimings2() {
shape([3,7].smooth(),[0,1].ease('sin'),[1,0].ease('easeInOut')).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,0,0,0,1,1,1,1].smooth(),[0,0,1,1,0,0,1,1].smooth(),[0,1,0,1,0,1,0,1].smooth())).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).invert([0,1].smooth()).kaleid([3,7].smooth())).scale(0.5).rotate(1,1).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll(()=>Math.tan(time),()=>Math.tan(time))).repeat(2,2).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll(()=>Math.sin(time),()=>Math.cos(time))).repeat(2,2).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll([0,2].smooth(),[2,0].smooth())).repeat(2,2).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll([2,0].smooth(),[0,2].smooth())).repeat(2,2).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll([0,2].smooth(),[0,2].smooth())).repeat(2,2).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll([2,0].smooth(),[2,0].smooth())).modulateScale(osc(16)).scale(8).scale(()=>Math.sin(time/3)).out(o0)
shape([3,7].smooth(),[0,1].ease('sin'),[1,0].ease('easeInOut')).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,0,0,0,1,1,1,1].smooth(),[0,0,1,1,0,0,1,1].smooth(),[0,1,0,1,0,1,0,1].smooth())).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).invert([0,1].smooth()).kaleid([3,7].smooth())).scale(0.5).rotate(1,1).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll(()=>Math.tan(time),()=>Math.tan(time))).repeat(2,2).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll(()=>Math.sin(time),()=>Math.cos(time))).repeat(2,2).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll([0,2].smooth(),[2,0].smooth())).repeat(2,2).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll([2,0].smooth(),[0,2].smooth())).repeat(2,2).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll([0,2].smooth(),[0,2].smooth())).repeat(2,2).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll([2,0].smooth(),[2,0].smooth())).modulateScale(osc(16)).scale(8).scale(()=>Math.cos(time/4)).out(o1)
shape([3,7].smooth(),[0,1].ease('sin'),[1,0].ease('easeInOut')).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,0,0,0,1,1,1,1].smooth(),[0,0,1,1,0,0,1,1].smooth(),[0,1,0,1,0,1,0,1].smooth())).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).invert([0,1].smooth()).kaleid([3,7].smooth())).scale(0.5).rotate(1,1).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll(()=>Math.tan(time),()=>Math.tan(time))).repeat(2,2).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll(()=>Math.sin(time),()=>Math.cos(time))).repeat(2,2).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll([0,2].smooth(),[2,0].smooth())).repeat(2,2).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll([2,0].smooth(),[0,2].smooth())).repeat(2,2).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll([0,2].smooth(),[0,2].smooth())).repeat(2,2).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll([2,0].smooth(),[2,0].smooth())).modulateScale(osc(16)).scale(8).scale(()=>Math.sin(time/5)).out(o2)
shape([3,7].smooth(),[0,1].ease('sin'),[1,0].ease('easeInOut')).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,0,0,0,1,1,1,1].smooth(),[0,0,1,1,0,0,1,1].smooth(),[0,1,0,1,0,1,0,1].smooth())).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).invert([0,1].smooth()).kaleid([3,7].smooth())).scale(0.5).rotate(1,1).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll(()=>Math.tan(time),()=>Math.tan(time))).repeat(2,2).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll(()=>Math.sin(time),()=>Math.cos(time))).repeat(2,2).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll([0,2].smooth(),[2,0].smooth())).repeat(2,2).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll([2,0].smooth(),[0,2].smooth())).repeat(2,2).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll([0,2].smooth(),[0,2].smooth())).repeat(2,2).modulateScrollY(osc(1).repeat(()=>Math.cos(time),()=>Math.sin(time)).scroll([2,0].smooth(),[2,0].smooth())).modulateScale(osc(16)).scale(8).scale(()=>Math.cos(time/6)).out(o3)
render()
}
function graphicswitchwhitoutp5js() {
src(s0).diff(shape([3, 7].smooth()).scale(2).scale(() => a.fft[0] * 0.25 + 1)).mult(osc(10, 1).diff(gradient(1)).diff(solid([0, 0, 0, 0, 1, 1, 1, 1].smooth(),[0, 0, 1, 1, 0, 0, 1, 1].smooth(),[0, 1, 0, 1, 0, 1, 0, 1].smooth())).mask(osc([2, 6].ease(),[1, 3].ease(),300).diff(gradient([1, 10].ease()).color([0, 0, 0, 1, 1, 1, 1].fit().smooth(),[0, 1, 1, 0, 0, 1, 1].fit().smooth(),[1, 0, 1, 0, 1, 0, 1].fit().smooth()))),[0, 1].ease().fast(0.125)).modulate(voronoi(3, 2)).repeat().modulateScale(osc(5)).pixelate([250, 1250].smooth(),[250, 1250].smooth()).contrast([0, 2].ease()).blend(osc(1, 2, 300).diff(gradient(1).hue(() => Math.sin(time),() => Math.cos(time),() => Math.tan(time))).color([0, 0, 0, 1, 1, 1, 1].smooth(),[0, 1, 1, 0, 0, 1, 1].smooth(),[1, 0, 1, 0, 1, 0, 1].smooth()).scale(0.015625).invert(1).blend(shape([3, 7].smooth(), 0.1, 0.5).contrast(5).scale(1.25).scale(() => a.fft[1] * 0.5 + 1).blend(osc(1).diff(gradient(1))).modulate(voronoi(3))),[0, 1].smooth()).blend(osc(1, 2, 300).diff(gradient(1).hue(() => Math.sin(time),() => Math.cos(time),() => Math.tan(time))).color([0, 0, 0, 1, 1, 1, 1].smooth(),[0, 1, 1, 0, 0, 1, 1].smooth(),[1, 0, 1, 0, 1, 0, 1].smooth()).scale(0.015625).invert(1).blend(shape([3, 7].smooth(), 0.1, 0.5).contrast(5).scale(1.25).scale(() => a.fft[2] * 0.75 + 1).blend(osc(1).diff(gradient(1))).modulate(voronoi(3))),[0, 1].smooth()).layer(src(s0).modulate(voronoi(3)).blend(shape([2].smooth().offset(),[0.1, 0.5].smooth().offset(),[0.5, 0.1].smooth().offset()).mult(osc(10, 1).diff(gradient(15))).contrast(5)).scale(() => Math.sin(time) * 1.5).scale(() => a.fft[1] * 1 + 1).repeat(2, 2).blend(osc(1, 2, 300).diff(gradient(1).hue(() => Math.sin(time),() => Math.cos(time),() => Math.tan(time))).color([0, 0, 0, 1, 1, 1, 1].smooth(),[0, 1, 1, 0, 0, 1, 1].smooth(),[1, 0, 1, 0, 1, 0, 1].smooth()).scale(0.015625).invert(1).blend(shape([3, 7].smooth(), 0.1, 0.5).contrast(5).scale(1.25).scale(() => a.fft[0] * 1.25 + 1).blend(osc(1).diff(gradient(1))).modulate(voronoi(3))),[0, 1].smooth()).color([0, 0, 0, 1, 1, 1, 1].smooth(),[0, 1, 1, 0, 0, 1, 1].smooth(),[1, 0, 1, 0, 1, 0, 1].smooth(),({ time }) => Math.sin(time * 2))).scale(() => a.fft[1] * 1.5 + 1).blend(voronoi(20, 1, [0, 5].smooth()).modulatePixelate(shape([3, 7].smooth(0.1),[0, 1].smooth(0.3),[1, 0].smooth(0.5)).mult(gradient(1).diff(solid([0, 0, 0, 0, 1, 1, 1, 1].smooth(),[0, 0, 1, 1, 0, 0, 1, 1].smooth(),[0, 1, 0, 1, 0, 1, 0, 1].smooth())).hue(() => Math.sin(time),() => Math.cos(time),() => Math.tan(time)))).scale(() => a.fft[2] * 1.75 + 1),[0, 1].smooth()).scale([0.5, 0.75].smooth()).out()
}
function graphicswitchedited() {
shape([3,7].smooth(),[0,1].smooth(),[1,0].smooth()).rotate(()=>Math.tan(time)).add(voronoi(20,1,5).luma(0.05)).blend(noise(2).thresh()).mult(osc(10,0.5,300).diff(gradient(1).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time))).color([0,0,0,1,1,1,1].smooth(),[0,1,1,0,0,1,1].smooth(),[1,0,1,0,1,0,1].smooth()).invert().scale(1/8)).out()
}
function moonmodulation() {
shape(360,[0,1].smooth(),[1,0].smooth()).color(1,0.875,0.125).modulate(shape(360,[1,0].smooth(),[0,1].smooth()),[0,1].smooth()).blend(o0).scrollX(()=>Math.sin(time)/10).scrollY(()=>Math.cos(time)/10).scale(()=>Math.tan(time)/10).out()
}
function limitedpatterns() {
solid().add(o1,[1,0,0].smooth()).add(o2,[0,1,0].smooth()).add(o3,[0,0,1].smooth()).out()
shape([3,7].smooth(),[0,1].smooth(),[1,0].smooth()).modulate(o1,[0,1].ease('sin')).saturate(5).posterize(5).invert().colorama([-1,1].smooth().fast(1/16)).luma([-1,1].smooth()).layer(voronoi(20,1,[0,1].smooth()).add(osc(10,0.5,300).diff(gradient(1)).kaleid([3,7].smooth()).scroll(()=>Math.sin(time),()=>Math.cos(time)).scale(1/4).blend(o1,[0,1].ease('easeInOut').smooth().fast(1/4)),[0,1].smooth()).color(1,1,1,[0,1].smooth())).blend(osc(10,1).mask(noise().thresh(),[1,0].smooth()).mask(shape([3,7].smooth()).modulate(voronoi(3)).repeat(),[0,1].smooth()),[1,0].smooth()).blend(solid(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).mult(voronoi(3,[0,1/2].smooth().fast(1/64),[0,1/2].smooth().fast(1/64))),[0,1].smooth()).out(o1)
shape(2,0.001,0.005).modulate(noise([0,3].smooth())).rotate([0,1].smooth()).rotate(()=>Math.sin(time)).rotate([0,1].ease('sin')).rotate(()=>Math.cos(time)).rotate([1,0].ease('easeInOut')).rotate(()=>Math.sin(timme)).layer(noise([0,5].smooth()).thresh().invert([0,1].smooth()).blend(o2).color(1,1,1,[1,0].smooth())).mask(shape([1,2].smooth()).scroll(()=>Math.sin(time),()=>Math.cos(time)).rotate(1,1).repeat(5,5).contrast([1,3].smooth()),[0,1].smooth()).out(o2)
shape([3,7].smooth(),[0,1].smooth(),[1,0].smooth()).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,0,0,0,1,1,1,1].smooth(),[0,0,1,1,0,0,1,1].smooth(),[0,1,0,1,0,1,0,1].smooth())).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).colorama([0,5].smooth().fast(1/16)).luma([0,1].smooth().fast(1/16))).kaleid([3,7].smooth()).modulateKaleid(shape([3,7].smooth(),[0,1].smooth(),[1,0].smooth()),[3,7].smooth()).layer(noise(7.5).thresh().modulate(o3).color(1,1,1,[1,0,0].smooth())).layer(voronoi(1,1,5).color(1,1,1,[0,1,0].smooth())).layer(osc(10,1,300).modulate(voronoi(3)).modulate(noise(3)).color([0,0,1].smooth())).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,0,0,0,1,1,1,1].smooth(),[0,0,1,1,0,0,1,1].smooth(),[0,1,0,1,0,1,0,1].smooth())).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).invert([0,1].smooth().fast(1/4))).blend(shape([3,7].smooth(),[0,1].smooth(),[1,0].smooth()).rotate(()=>Math.tan(time)).scale(()=>Math.tan(time)*(-1)),[0,1].smooth()).out(o3)
}
function colofulcells() {
osc(10,1).mult(osc(10,1).rotate(1.57)).add(shape(4,0,1).repeat(2,2).scroll([0,1].smooth(0.5),[0,1].smooth(0.5))).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,0,0,0,1,1,1,1].smooth(),[0,0,1,1,0,0,1,1].smooth(),[0,1,0,1,0,1,0,1].smooth())).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time))).saturate([0,5].smooth()).brightness([0,1/8].smooth()).contrast([2,5].smooth()).out()
}
function electricscoreboardandsquaresmoke() {
shape(360,0,1).repeat(64,64).add(voronoi(20,1,5)).mask(osc(10,0.5).add(osc(10,0.5).rotate(1.57))).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,0,0,0,1,1,1,1].smooth(),[0,0,1,1,0,0,1,1].smooth(),[0,1,0,1,0,1,0,1].smooth())).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,2].ease('sin')).brightness([0,1].smooth()).contrast([1,3].smooth())).out()
}
function seamofwavelightversion() {
shape([3,7].smooth(),[0,1].smooth(),[0,1].reverse().smooth()).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,0,0,0,1,1,1,1].smooth(),[0,0,1,1,0,0,1,1].smooth(),[0,1,0,1,0,1,0,1].smooth())).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,5].smooth()).brightness([0,1].smooth()).contrast([1,3].smooth()).scale(0.1)).rotate(()=>Math.sin(time)).diff(shape([3,7].reverse().smooth(),[0,1].reverse().smooth(),[0,1].smooth()).mult(osc(-10,-0.5,300).diff(gradient(-1)).diff(solid([0,0,0,0,1,1,1,1].smooth().fast(1/2),[0,0,1,1,0,0,1,1].smooth().fast(1/2),[0,1,0,1,0,1,0,1].smooth().fast(1/2))).hue(()=>Math.sin(time/2),()=>Math.cos(time/2),()=>Math.tan(time/2)).saturate([0,5].smooth().fast(1/2)).brightness([0,1].smooth().fast(1/2)).contrast([1,3].smooth().fast(1/2)).scale(0.1)).rotate(()=>Math.cos(time))).scale(1.5).out()
}
function seamofwavedarkversion() {
shape([3,7].smooth(),[0,1].smooth(),[0,1].reverse().smooth()).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,0,0,0,1,1,1,1].smooth(),[0,0,1,1,0,0,1,1].smooth(),[0,1,0,1,0,1,0,1].smooth())).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,5].smooth()).brightness([0,1].smooth()).contrast([1,3].smooth()).scale(0.1)).rotate(()=>Math.sin(time)).diff(shape([3,7].reverse().smooth(),[0,1].reverse().smooth(),[0,1].smooth()).mult(osc(-10,-0.5,300).diff(gradient(-1)).diff(solid([0,0,0,0,1,1,1,1].smooth().fast(1/2),[0,0,1,1,0,0,1,1].smooth().fast(1/2),[0,1,0,1,0,1,0,1].smooth().fast(1/2))).hue(()=>Math.sin(time/2),()=>Math.cos(time/2),()=>Math.tan(time/2)).saturate([0,5].smooth().fast(1/2)).brightness([0,1].smooth().fast(1/2)).contrast([1,3].smooth().fast(1/2)).scale(0.1)).rotate(()=>Math.cos(time))).scale(1.5).invert().out()
}
function marbleswithpaintoverandflash() {
t = 8;
marbles = () => osc(10,0.5,300).diff(gradient(1)).diff(solid([0,0,0,0,1,1,1,1].smooth(),[0,0,1,1,0,0,1,1].smooth(),[0,1,0,1,0,1,0,1].smooth())).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,5].smooth()).brightness([0,1].smooth()).contrast([1,2].smooth()).diff(noise(()=>time/1000).thresh()).mask(voronoi(2,1,5).scale(3)).scale(0.1).invert();
flash = () => shape(360,[0,1].smooth(),[0,1].reverse().smooth()).colorama([0,10].smooth()).mult(osc(10,0.5).diff(osc(10,0.5).rotate(1.57))).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,0,0,0,1,1,1,1].smooth(),[0,0,1,1,0,0,1,1].smooth(),[0,1,0,1,0,1,0,1].smooth())).hue(()=>Math.cos(time),()=>Math.tan(time),()=>Math.sin(time)).saturate([0,5].reverse().ease('sin')).brightness([0,1].reverse().smooth()).contrast([0,1].reverse().smooth()).invert());
marbles().invert().add(flash()).blend(o0,[0,t-1/t].smooth().fast(1/t)).out(o0);
}
function glossofdropandsphereescalator() {
solid().add(o3).modulateScale(src(o3).add(noise(1).thresh()),()=>Math.tan(time)).out(o0)
shape(360,[0.1,0.5].smooth(),[0.1,0.5].reverse().smooth()).scale(0.99).repeat(8,8).scroll(()=>(time/-10),()=>(time/-10)).diff(osc(50,0.25).mult(osc(50,0.25).rotate(1.57)).thresh()).out(o1)
voronoi(1,4,3).repeat(8,8).scroll(()=>(time/-10),()=>(time/-10)).blend(osc(50,0.25).mult(osc(50,0.25).rotate(1.57)).thresh()).out(o2)
solid().add(o1,[1,0].fast(1/4)).add(o2,[0,1].fast(1/4)).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1].smooth(),[0,0,0,0,1,1,1,1].smooth(),[0,0,1,1].smooth(),[0,1].smooth())).invert().hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,5].ease('sin')).brightness([0,1].smooth()).contrast([1,2].smooth())).scale([0,1].smooth().fast(1/2)).out(o3)
}
function kaleidcoaster() {
osc([10,100].smooth().fast(1/16),1,300).diff(gradient(1)).diff(solid([0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1].smooth(),[0,0,0,0,1,1,1,1].smooth(),[0,0,1,1].smooth(),[0,1].smooth())).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,5].smooth()).brightness([0,1].smooth()).contrast([1,2].smooth()).invert().kaleid([3,4,5,6,7].smooth()).diff(shape([3,4,5,6,7].smooth(),[0,1].smooth(),[0,1].reverse().smooth()).colorama([1,10].smooth().fast(1/16)).thresh().rotate([2.62,2.35,2.2,2.1,2.03].smooth())).blend(o0,[0.01,0.99].smooth()).out()
}
function imaginetheimageofthesea() {
osc(10).modulate(noise(()=>Math.PI)).modulate(o1).modulate(o2).modulate(o3).add(solid(0,0.25,1,1),3/4).out()
shape(360,[0,1].smooth(),[0,1].reverse().smooth()).repeat(8,8).out(o1)
noise(10).thresh().out(o2)
voronoi(20,1,5).out(o3)
}
function surge() {
solid().add(o1,[0,1].smooth()).add(o2,[0,1].reverse().smooth()).modulatePixelate(shape(360,[0,1].smooth(),[0,1].reverse().smooth()).colorama(1)).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1])).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).brightness([0,1].smooth()).contrast([1,2].smooth()).kaleid(360)).modulateScrollY(osc(1).repeat(1,1).scroll(()=>Math.sin(time),()=>Math.cos(time))).modulateScrollY(osc(2).repeat(2,2).scroll(()=>Math.cos(time/2),()=>Math.sin(time/2))).modulateScrollY(osc(3).repeat(3,3).scroll(()=>Math.sin(time/3),()=>Math.cos(time/3))).modulateScrollY(osc(4).repeat(4,4).scroll(()=>Math.cos(time/4),()=>Math.sin(time/4))).out(o0)
noise(20).thresh([0,1].smooth()).out(o1)
voronoi(20,1,[0,5].smooth().fast(1/20)).out(o2)
}
function surgepaintoverversion() {
solid().add(o1,[0,1].smooth()).add(o2,[0,1].reverse().smooth()).modulatePixelate(shape(360,[0,1].smooth(),[0,1].reverse().smooth()).colorama(1)).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1])).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).brightness([0,1].smooth()).contrast([1,2].smooth()).kaleid(360)).modulateScrollY(osc(1).repeat(1,1).scroll(()=>Math.sin(time),()=>Math.cos(time))).modulateScrollY(osc(2).repeat(2,2).scroll(()=>Math.cos(time/2),()=>Math.sin(time/2))).modulateScrollY(osc(3).repeat(3,3).scroll(()=>Math.sin(time/3),()=>Math.cos(time/3))).modulateScrollY(osc(4).repeat(4,4).scroll(()=>Math.cos(time/4),()=>Math.sin(time/4))).diff(o0,[0,8].smooth()).out(o0)
noise(20).thresh([0,1].smooth()).out(o1)
voronoi(20,1,[0,5].smooth().fast(1/20)).out(o2)
}
function electriccircuit() {
shape(4).colorama(2).scroll(()=>Math.random(time),()=>Math.random(time)).blend(o0,[0.9,0.99].smooth().fast(1/4)).colorama().contrast(1.1).out()
}
function retromodern() {
shape(4).scrollX(()=>(time)).scale(3.3).diff(o0).diff(osc(10,1)).scale([0.5,0.875].smooth()).invert([0,1]).color(0,1,1).out()
}
function blurandpaintover() {
noise(2,0).thresh().scroll(1.145,0.65625).scale(2.2,1.2,0.96875).rotate(2).add(shape(360,0.1,2.47).scale(0.5)).mult(voronoi(2,0,50),0.1).repeat(2,2).mult(osc(1,2,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth())).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,5].ease('sin')).brightness([0,1].smooth()).contrast([1,2].smooth()).scale(0.1)).modulateScale(osc([0,5].smooth().fast(1/16)),()=>Math.tan(time)).add(o0,()=>Math.tan(time)).blend(o0,[0,1].ease('sin')).out()
}
function likealacesheercurtainthatcirclesdesignshiftsandpopsout() {
shape(360,[0,1].smooth(),[0,1].reverse().smooth()).scale(0.05).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth())).invert([0,1].smooth().fast(1/2)).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,5].smooth()).brightness([0,1].smooth()).contrast([1,2].smooth()).scale(0.01)).scroll([0,0,1/2,1/2].fast(8),[0,1/2,0,1/2].fast(8)).scale(7/8).add(o0,7/8).modulateScrollY(osc(1).repeat(2,2).scroll(()=>Math.sin(time),()=>Math.cos(time))).modulateScrollY(osc(2).repeat(2,2).scroll(()=>Math.cos(time/2),()=>Math.sin(time/2))).diff(osc(10,0.0175).scale(0.7)).scale(()=>Math.tan(time/32)).out(o0)
}
function vividinvertrosemodulation() {
src(o1).rotate(1,1).add(o0,[0,1].smooth().fast(1/8)).mult(o0,[0,1].smooth().fast(1/4)).diff(o0,[0,1].smooth().fast(1/2)).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth())).invert([0,1].smooth()).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,5].smooth()).brightness([0,1].smooth()).contrast([1,2].smooth())).scale([0,1].smooth()).add(o0,[-1,1].ease('sin')).brightness(-0.25).out(o0)
osc(10,1).kaleid([3,7].smooth()).modulateRotate(shape([3,7].smooth(),[0,1].smooth(),[0,1].reverse().smooth()),()=>Math.tan(time)).modulateScale(o0,()=>Math.tan(time)).blend(o1,0.99).out(o1)
}
function colorandactivefluidassignment() {
voronoi([0,1].smooth(),1,[0,1].ease('sin')).modulateScale(shape(360,[0,1].smooth(),[0,1].reverse().smooth()).add(noise(1).thresh()).rotate(1,1),()=>Math.tan(time/10)).modulateScrollY(osc(1).scroll(()=>Math.sin(time),()=>Math.cos(time))).modulateScrollY(osc(2).scroll(()=>Math.cos(time/2),()=>Math.sin(time/2))).modulateScale(osc(()=>Math.PI)).scale(1/2).mult(osc(10,0.5,300).posterize(5).diff(gradient(1).colorama(1).luma(1/2)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth()).shift([0,1].reverse().ease('sin'),[0,1].reverse().ease('sin').fast(1/2),[0,1].reverse().ease('sin').fast(1/4),[0,1].reverse().ease('sin').fast(1/8))).color(()=>Math.cos(time),()=>Math.tan(time),()=>Math.sin(time)).invert([0,1].smooth()).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([0,1].smooth()).contrast([1,2].smooth())).out()
}
function fireandsmokestainedinspectralcolors() {
setResolution(400,400);
shape(360,[0,1].smooth(),[0,1].reverse().smooth()).scale(()=>Math.tan(time)).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth())).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([0,1].smooth()).contrast([1,2].smooth())).add(o0,[0,2].smooth()).mult(o0,[1,2,0].smooth()).diff(o0,[0,2].reverse().smooth()).blend(o0,[0,2].smooth()).modulate([0,1].smooth()).out();
}
function rhombusswirl() {
setResolution(400,400);
osc(10,1).mult(osc(10,1).rotate(1.57)).modulateKaleid(o1).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth())).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([0,1].smooth()).contrast([1,2].smooth()).scale([0,1].smooth())).out(o0);
shape(4,[0,1].smooth(),[0,1].reverse().smooth()).rotate(1,1).modulateKaleid(shape(4,[0,1].smooth(),[0,1].reverse().smooth()),4).kaleid(4).rotate(()=>Math.tan(time)).modulateRotate(shape(4,[0,1].smooth(),[0,1].reverse().smooth()),()=>Math.tan(time*-1)).rotate(-1,-1).out(o1);
}
function unusuallyshapedtreetrunkforestandcolorfulzebra() {
setResolution(400,400);
src(o1).modulateScrollY(osc(1).scroll(()=>Math.sin(time),()=>Math.cos(time))).repeat(1,2).modulateScrollY(osc(2).scroll(()=>Math.cos(time/2),()=>Math.sin(time/2))).repeat(2,1).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth())).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([0,1].smooth()).contrast([1,2].smooth()).color(()=>Math.cos(time),()=>Math.tan(time),()=>Math.sin(time)).shift([0,1].smooth(),[0,1].smooth().fast(1/2),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/8)).luma([0,1].smooth()).colorama([0,3].smooth())).blend(o0,[0,3/4].smooth()).out(o0);
osc(10,1/4).layer(shape([3,7].smooth(),[0,1].smooth(),[0,1].reverse().smooth()).mask(noise(1).thresh())).invert([0,1].ease('sin')).modulate(voronoi(1)).modulate(voronoi(2)).posterize(1.5).scale([0,1].smooth().fast(1/4)).add(o1,[0,1].smooth()).blend(o1,[0,3/4].smooth()).out(o1);
}
function waveandlaser() {
shape(4,[0,1].smooth(),[0,1].reverse().smooth()).scale(1).repeat([1,4].smooth().fast(1/4),[1,4].smooth()).modulateScrollY(osc(1).scroll(()=>Math.sin(time/-2),()=>Math.cos(time/-2))).modulateScrollY(osc(2).scroll(()=>Math.cos(time/-1),()=>Math.sin(time/-1))).modulateScrollY(osc(3).scroll(()=>Math.sin(time),()=>Math.cos(time))).modulateScrollY(osc(2).scroll(()=>Math.cos(time*2),()=>Math.sin(time*2))).scale([1/8,1/2].smooth()).scale(()=>(time/10)).scroll(()=>Math.sin(time/2),()=>Math.cos(time/2)).diff(osc(10,1/4)).diff(osc(10,1/4).rotate(1.57)).mult(osc(10,1/8,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth())).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([0,1].smooth()).contrast([1,2].smooth()).scale(0.1).scale(1.5)).invert().out();
}
function bulge() {
shape(4,[0,1].smooth(),[0,1].reverse().smooth()).repeat(4,4).rotate([0,1.57].smooth()).diff(osc(10,1/8).layer(osc(10,1/8).luma().rotate([0,1.57].smooth()).mask(noise([1,2].smooth()).thresh().repeat([2,4].reverse().smooth(),[2,4].reverse().smooth())).mask(voronoi(5,1,5).rotate(()=>Math.sin(time)).invert().brightness(-1))),[0,1].reverse()).diff(osc(10,1/4).layer(osc(10,1/4).thresh().rotate([0,1.57].reverse().smooth()).mask(noise([1,2].reverse().smooth()).thresh().repeat([2,4].smooth(),[2,4].smooth())).mask(voronoi(5,1,5).rotate(()=>Math.cos(time)).invert().brightness(-1))),[0,1]).modulateScrollY(osc(1).scroll(()=>Math.sin(time),()=>Math.cos(time))).modulateScrollY(osc(2).scroll(()=>Math.cos(time/2),()=>Math.sin(time/2))).modulateScrollY(voronoi([0,1].smooth()).scroll(()=>Math.sin(time*-1),()=>Math.cos(time*-1))).modulateScrollY(voronoi([0,2].smooth().fast(2)).scroll(()=>Math.cos(time*-2),()=>Math.sin(time*-2))).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth())).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([0,1].smooth()).contrast([1,2].smooth()).invert().posterize(2).colorama(1).shift([0,1].reverse().smooth(),[0,1].reverse().smooth().fast(1/2),[0,1].reverse().smooth().fast(1/4),[0,1].reverse().smooth().fast(1/8)).kaleid(4).rotate(0.8).rotate([0,1.57].smooth())).out()
}
function movingcoloredglassthatreflectspolkadotsandpuddles() {
solid().blend(shape([3,7].smooth(),[0,1].smooth(),[0,1].reverse().smooth()).scroll(()=>Math.sin(time),()=>(time)).scale(1/2),[0,1].reverse().smooth()).blend(shape([4,5,6,7,3].smooth(),[0,1].reverse().smooth(),[0,1].smooth()).scroll(()=>Math.cos(time),()=>(time)).scale(1/2),[0,1].smooth().fast(1/2)).blend(shape([5,6,7,3,4].smooth(),[0,1].smooth(),[0,1].reverse().smooth()).scroll(()=>(time),()=>Math.sin(time)).scale(1/2),[0,1].reverse().smooth().fast(1/4)).blend(shape([6,7,3,4,5].smooth(),[0,1].reverse().smooth(),[0,1].smooth()).scroll(()=>(time),()=>Math.cos(time)).scale(1/2),[0,1].smooth().fast(1/8)).scale(1/2).diff(osc(10,1/8).layer(osc(10,1/8).rotate(1.57).luma()),[0,1].reverse().smooth()).diff(osc(10,1/4).layer(osc(10,1/4).rotate(1.57).thresh()).rotate(1.57),[0,1].smooth()).modulate(noise(()=>Math.PI).thresh()).layer(voronoi(10,1,2).luma()).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth())).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([0,1].smooth()).contrast([1,2].smooth()).invert(),[0,1].smooth()).out()
}
function transparent() {
shape(360,[0,1].smooth(),[0,1].reverse().smooth()).repeat(4,4).diff(osc(10,1/8).diff(osc(10,1/8).rotate(1.57))).diff(noise(2).thresh()).diff(voronoi([1,5].smooth().fast(1/5),1,[2,5].smooth().fast(1/5)).repeat(2,2).luma()).out()
}
function partialrepresentation() {
solid().layer(src(o1).luma()).layer(src(o2).thresh().mask(src(o3).luma().colorama([0,10].smooth().fast(1/10)))).modulate(noise(2).thresh()).modulate(voronoi(1)).modulate(voronoi(2)).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth())).invert().hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([0,1].smooth()).contrast([1,2].smooth())).out()
voronoi(5,1,2.5).out(o1)
osc(10,1/8,300).diff(gradient(1)).diff(solid([0,1].reverse().smooth(),[0,1].reverse().smooth().fast(1/2),[0,1].reverse().smooth().fast(1/4),[0,1].reverse().smooth().fast(1/8))).diff(noise(1)).out(o2)
shape([3,7].smooth(),[0,1].smooth(),[0,1].reverse().smooth()).modulateScrollY(osc(1).scroll(()=>Math.sin(time*-2),()=>Math.cos(time*-2))).modulateScrollY(osc(2).scroll(()=>Math.cos(time*-1),()=>Math.sin(time*-1))).modulateScrollY(osc(3).scroll(()=>Math.sin(time),()=>Math.cos(time))).modulateScrollY(osc(4).scroll(()=>Math.cos(time/2),()=>Math.sin(time/2))).out(o3)
}
function partialrepresentationvideoversionthatispileduppaintoverandshrinked() {
solid().layer(src(o1).luma()).layer(src(o2).thresh().mask(src(o3).luma().colorama([0,10].smooth().fast(1/10)))).modulate(noise(2).thresh()).modulate(voronoi(1)).modulate(voronoi(2)).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth())).invert().hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([0,1].smooth()).contrast([1,2].smooth())).diff(o0,[0,1].smooth()).scale([7/8,1].smooth()).blend(o0,[0,1].reverse().smooth().fast(1/2)).out()
voronoi(5,1,2.5).modulateRotate(src(o1).rotate(0.99,0.99).scale(1.01),[0,1].reverse().smooth()).out(o1)
osc(10,1/8,300).diff(gradient(1)).diff(solid([0,1].reverse().smooth(),[0,1].reverse().smooth().fast(1/2),[0,1].reverse().smooth().fast(1/4),[0,1].reverse().smooth().fast(1/8))).diff(noise(1)).modulateScale(src(o2).scale(1.01),[0,2].smooth()).out(o2)
shape([3,7].smooth(),[0,1].smooth(),[0,1].reverse().smooth()).modulateScrollY(osc(1).scroll(()=>Math.sin(time*-2),()=>Math.cos(time*-2))).modulateScrollY(osc(2).scroll(()=>Math.cos(time*-1),()=>Math.sin(time*-1))).modulateScrollY(osc(3).scroll(()=>Math.sin(time),()=>Math.cos(time))).modulateScrollY(osc(4).scroll(()=>Math.cos(time/2),()=>Math.sin(time/2))).modulateHue(src(o3).scale(1.01),[0,1].reverse().smooth()).out(o3)
}
function partialrepresentationvideoversionthatispileduppaintoverrotatedandshrinked() {
solid().layer(src(o1).luma()).layer(src(o2).thresh().mask(src(o3).luma().colorama([0,10].smooth().fast(1/10)))).modulate(noise(2).thresh()).modulate(voronoi(1)).modulate(voronoi(2)).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth())).invert().hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([0,1].smooth()).contrast([1,2].smooth())).diff(o0,[0,1].smooth()).modulateKaleid(src(o0).diff(shape([3,7].reverse().smooth(),[0,1].reverse().smooth(),[0,1].smooth()),[0,1].reverse().smooth()).rotate(0.99,0.99).scale(1.01),[3,7].reverse().smooth()).rotate(()=>(time/5)).scale([7/8,1].smooth()).blend(o0,[0,1].reverse().smooth().fast(1/2)).out()
voronoi(5,1,2.5).modulateRotate(src(o1).rotate(0.99,0.99).scale(1.01),[0,1].reverse().smooth()).out(o1)
osc(10,1/8,300).diff(gradient(1)).diff(solid([0,1].reverse().smooth(),[0,1].reverse().smooth().fast(1/2),[0,1].reverse().smooth().fast(1/4),[0,1].reverse().smooth().fast(1/8))).diff(noise(1)).modulateScale(src(o2).scale(1.01),[0,2].smooth()).out(o2)
shape([3,7].smooth(),[0,1].smooth(),[0,1].reverse().smooth()).modulateScrollY(osc(1).scroll(()=>Math.sin(time*-2),()=>Math.cos(time*-2))).modulateScrollY(osc(2).scroll(()=>Math.cos(time*-1),()=>Math.sin(time*-1))).modulateScrollY(osc(3).scroll(()=>Math.sin(time),()=>Math.cos(time))).modulateScrollY(osc(4).scroll(()=>Math.cos(time/2),()=>Math.sin(time/2))).modulateHue(src(o3).scale(1.01),[0,1].reverse().smooth()).out(o3)
}
function partialrepresentationanothervideoversionthatispileduppaintoverrotatedandshrinked() {
solid().layer(src(o1).luma()).layer(src(o2).thresh().mask(src(o3).luma().colorama([0,10].smooth().fast(1/10)))).modulate(noise(2).thresh()).modulate(voronoi(1)).modulate(voronoi(2)).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth())).invert().hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([0,1].smooth()).contrast([1,2].smooth())).diff(o0,[0,1].smooth()).rotate(()=>(time)).scale([7/8,1].smooth()).blend(o0,[0,1].reverse().smooth().fast(1/2)).out()
voronoi(5,1,2.5).modulateRotate(src(o1).rotate(0.99,0.99).scale(1.01),[0,1].reverse().smooth()).out(o1)
osc(10,1/8,300).diff(gradient(1)).diff(solid([0,1].reverse().smooth(),[0,1].reverse().smooth().fast(1/2),[0,1].reverse().smooth().fast(1/4),[0,1].reverse().smooth().fast(1/8))).diff(noise(1)).modulateScale(src(o2).scale(1.01),[0,2].smooth()).out(o2)
shape([3,7].smooth(),[0,1].smooth(),[0,1].reverse().smooth()).modulateScrollY(osc(1).scroll(()=>Math.sin(time*-2),()=>Math.cos(time*-2))).modulateScrollY(osc(2).scroll(()=>Math.cos(time*-1),()=>Math.sin(time*-1))).modulateScrollY(osc(3).scroll(()=>Math.sin(time),()=>Math.cos(time))).modulateScrollY(osc(4).scroll(()=>Math.cos(time/2),()=>Math.sin(time/2))).modulateHue(src(o3).scale(1.01),[0,1].reverse().smooth()).out(o3)
}
function partialrepresentationtheothervideoversion1thatispileduppaintoverrotatedandshrinked() {
solid().layer(src(o1).luma()).layer(src(o2).thresh().mask(src(o3).luma().colorama([0,10].smooth().fast(1/10)))).modulate(noise(2).thresh()).modulate(voronoi(1)).modulate(voronoi(2)).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth())).invert().hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([0,1].smooth()).contrast([1,2].smooth())).rotate(()=>(time)).diff(o0,[0,1].smooth()).scale([7/8,1].smooth()).blend(o0,[0,1].reverse().smooth().fast(1/2)).out()
voronoi(5,1,2.5).modulateRotate(src(o1).rotate(0.99,0.99).scale(1.01),[0,1].reverse().smooth()).out(o1)
osc(10,1/8,300).diff(gradient(1)).diff(solid([0,1].reverse().smooth(),[0,1].reverse().smooth().fast(1/2),[0,1].reverse().smooth().fast(1/4),[0,1].reverse().smooth().fast(1/8))).diff(noise(1)).modulateScale(src(o2).scale(1.01),[0,2].smooth()).out(o2)
shape([3,7].smooth(),[0,1].smooth(),[0,1].reverse().smooth()).modulateScrollY(osc(1).scroll(()=>Math.sin(time*-2),()=>Math.cos(time*-2))).modulateScrollY(osc(2).scroll(()=>Math.cos(time*-1),()=>Math.sin(time*-1))).modulateScrollY(osc(3).scroll(()=>Math.sin(time),()=>Math.cos(time))).modulateScrollY(osc(4).scroll(()=>Math.cos(time/2),()=>Math.sin(time/2))).modulateHue(src(o3).scale(1.01),[0,1].reverse().smooth()).out(o3)
}
function partialrepresentationtheothervideoversion2thatispileduppaintoverrotatedandshrinked() {
solid().layer(src(o1).luma()).layer(src(o2).thresh().mask(src(o3).luma().colorama([0,10].smooth().fast(1/10)))).modulate(noise(2).thresh()).modulate(voronoi(1)).modulate(voronoi(2)).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth())).invert().hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([0,1].smooth()).contrast([1,2].smooth())).modulateKaleid(shape([3,7].reverse().smooth(),[0,1].reverse().smooth(),[0,1].smooth()).rotate(0.99,0.99).scale(1.01),[3,7].reverse().smooth()).rotate(()=>(time)).diff(o0,[0,1].smooth()).scale([7/8,1].smooth()).blend(o0,[0,1].reverse().smooth().fast(1/2)).out()
voronoi(5,1,2.5).modulateRotate(src(o1).rotate(0.99,0.99).scale(1.01),[0,1].reverse().smooth()).out(o1)
osc(10,1/8,300).diff(gradient(1)).diff(solid([0,1].reverse().smooth(),[0,1].reverse().smooth().fast(1/2),[0,1].reverse().smooth().fast(1/4),[0,1].reverse().smooth().fast(1/8))).diff(noise(1)).modulateScale(src(o2).scale(1.01),[0,2].smooth()).out(o2)
shape([3,7].smooth(),[0,1].smooth(),[0,1].reverse().smooth()).modulateScrollY(osc(1).scroll(()=>Math.sin(time*-2),()=>Math.cos(time*-2))).modulateScrollY(osc(2).scroll(()=>Math.cos(time*-1),()=>Math.sin(time*-1))).modulateScrollY(osc(3).scroll(()=>Math.sin(time),()=>Math.cos(time))).modulateScrollY(osc(4).scroll(()=>Math.cos(time/2),()=>Math.sin(time/2))).modulateHue(src(o3).scale(1.01),[0,1].reverse().smooth()).out(o3)
}
function illusion() {
noise(1).thresh().mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth())).invert().kaleid([3,7].smooth()).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([0,1].smooth()).contrast([1,2].smooth())).modulatePixelate(shape(360,[0,1].smooth(),[0,1].reverse().smooth()).colorama([0,10].smooth()),[1,1000].smooth().fast(4),[1,1000].smooth().fast(4)).layer(voronoi(1,1,2.5).luma().mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,1].reverse().smooth(),[0,1].smooth().reverse().fast(1/2),[0,1].reverse().smooth().fast(1/4),[0,1].reverse().smooth().fast(1/8))).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([0,1].smooth()).contrast([1,2].smooth()))).rotate(()=>Math.sin(time)).rotate(()=>Math.cos(time)).rotate(1,1).scale([0,1].smooth().fast(1/8)).invert([0,1].smooth()).diff(o0,[-1,1].smooth().fast(1/16)).rotate(()=>Math.sin(time)).rotate(-1,-1).out()
}
function darkpaintover() {
shape([3,7].smooth(),[0,1].smooth(),[0,1].reverse().smooth()).diff(shape([3,7].reverse().smooth(),[0,1].reverse().smooth(),[0,1].smooth())).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth())).invert().hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([0,1].smooth()).contrast([1,2].smooth())).modulateScrollY(osc(1).scroll(()=>Math.sin(time),()=>Math.cos(time)).rotate(0.99,0.99).scale(1.01)).modulateScrollY(osc(2).scroll(()=>Math.cos(time/2),()=>Math.sin(time/2)).rotate(-0.99,-0.99).scale(1.01)).layer(src(o0).modulate(voronoi(2)).luma([1/8,1].smooth())).modulate(voronoi([0,2].smooth())).modulateHue(src(o0).scale(1.01).color(()=>Math.cos(time),()=>Math.tan(time),()=>Math.sin(time)),[3/16,3/8].reverse().smooth()).modulateScale(src(o0).scale(1.01).color(()=>Math.tan(time),()=>Math.sin(time),()=>Math.cos(time)),[1/8,1/4].smooth()).mult(o0,[0,1].smooth()).scale([0,1].reverse().smooth().fast(1/4)).diff(o0,[0,1].smooth()).mult(o0,[0,1].smooth()).out()
}
function coloredwindowsmovement() {
shape(4,[0,1].smooth(),[0,1].reverse().smooth()).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth())).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([0,1].smooth()).contrast([1,2].smooth()),[0,1/2].smooth()).repeat([0,4].smooth(),[0,4].smooth()).scale([1/2,1].smooth()).mask(shape(4,[0,1].reverse().smooth(),[0,1].smooth()).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,1].reverse().smooth(),[0,1].reverse().smooth().fast(1/2),[0,1].reverse().smooth().fast(1/4),[0,1].reverse().smooth().fast(1/8))).hue(()=>Math.cos(time),()=>Math.tan(time),()=>Math.sin(time)).saturate([0,10].reverse().smooth()).brightness([0,1].reverse().smooth()).contrast([1,2].reverse().smooth()),[0,3/4].reverse().smooth()).scale([3/4,1].reverse().smooth()),[0,1].reverse().smooth()).rotate(1,1).modulateScrollY(osc(1).scroll(()=>Math.sin(time),()=>Math.cos(time))).modulateScrollY(osc(1).scroll(()=>Math.cos(time/2),()=>Math.sin(time/2))).modulateScale(osc(()=>Math.PI)).diff(o0,[0,1].smooth()).out()
}
function noisewave() {
shape(4,[0,1].fit().smooth().fast(1/8),[0,1].fit().reverse().smooth().fast(1/8)).pixelate(75,75).modulate([-1,1].ease('easeInOut').ease('easeOutQuad').fast(1/2),[-1,1].smooth().ease('sin').fast(1/3)).modulate(src(o0).mult(o0).diff(o0).modulateRotate(o0,()=>Math.tan(time)).modulateScale(o0,[0,1].smooth()).color(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time))).scale([1/4,1/2].smooth()).modulateScrollY(osc(1).scroll(()=>Math.sin(time),()=>Math.cos(time))).repeat([0,2].smooth().fast(1/5),[0,2].smooth().fast(1/7)).modulateScrollY(osc(2).scroll(()=>Math.cos(time/2),()=>Math.sin(time/2))).repeat([0,2].reverse().smooth().fast(1/11),[0,2].reverse().smooth().fast(1/13)).modulateScale(osc([1,3].smooth().fast(1/17)).shift([0,1].reverse().smooth(),[0,1].reverse().smooth().fast(1/2),[0,1].reverse().smooth().fast(1/4),[0,1].reverse().smooth().fast(1/8)).colorama([0,10].smooth().fast(1/10))).diff(osc(10,1/2).diff(osc(10,1/2).rotate(1.57)).r([0,1].smooth().fast(1/2)).g([0,100].smooth().fast(1/3)).b([0,100].reverse().smooth().fast(1/5)).a([0,1].reverse().smooth().fast(1/7)).invert([0,1].smooth().fast(1/19))).scale([1/4,1/2].smooth()).colorama(0.001).luma(0.999).add(voronoi(20,1,5).luma().add(noise(10)).thresh().add(shape(360,[0,1].reverse().smooth(),[0,1].smooth()).repeat(16,16).luma().thresh(0.001))).modulate(src(o0).add(src(o0).thresh().luma(),[0,1]).scale([0,1].smooth())).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth())).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([-1,1].smooth()).contrast([0,1].smooth()),1/4).add(src(o0).mult(src(o0).scale([1,4].smooth())),[-1,1].smooth()).invert().out()
}
function simplebutcomplexanimationversion1() {
noise(1).thresh().diff(noise(2).thresh()).layer(noise(3).thresh()).modulate(noise(4).thresh()).add(voronoi(5,1,5).luma().diff(voronoi(6,1,6).luma()).layer(voronoi(7,1,7).luma()).modulate(voronoi(8,1,8).luma())).blend(shape(360,[0,1].smooth(),[0,1].reverse().smooth()).colorama(1).diff(shape(360,[0,1].reverse().smooth(),[0,1].smooth()).colorama(2)).layer(shape(360,[0,1].smooth(),[0,1].reverse().smooth()).colorama(3)).modulate(shape(360,[0,1].reverse().smooth(),[0,1].smooth()).colorama(4))).out()
}
function simplebutcomplexanimationversion2() {
solid().diff(src(o1).kaleid([3,7].smooth()),[0,1].smooth()).diff(src(o1).modulateKaleid(o1,[3,7].smooth()),[0,1].reverse().smooth().fast(1/2)).diff(src(o1).rotate(-1,-1),[0,1].smooth().fast(1/3)).diff(src(o1).modulateRotate(o1,()=>(time)),[0,1].reverse().smooth().fast(1/5)).diff(src(o1).scale([0,1].smooth()),[0,1].smooth().fast(1/7)).diff(src(o1).modulateScale(src(o1).shift([0,1].smooth(),[0,1].smooth().fast(1/2),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/8)),[0,1].reverse().smooth()),[0,1].reverse().smooth().fast(1/11)).diff(src(o1).scroll(()=>Math.sin(time),()=>Math.cos(time)),[0,1].smooth().fast(1/13)).diff(src(o1).modulateScrollY(src(o1).scroll(()=>Math.sin(time),()=>Math.cos(time))).modulateScrollY(src(o1).scroll(()=>Math.cos(time/2),()=>Math.cos(time))),[0,1].reverse().smooth().fast(1/17)).out();
shape([3,7].smooth(),[0,1].smooth(),[0,1].reverse().smooth()).out(o1);
solid().diff(src(o3).kaleid([3,7].smooth().fast(1/2)),[0,1].smooth().fast(1/3)).diff(src(o3).modulateKaleid(o3,[3,7].smooth().fast(1/5)),[0,1].reverse().smooth().fast(1/7)).diff(src(o3).rotate(-1,-1),[0,1].smooth().fast(1/11)).diff(src(o3).modulateRotate(o3,()=>(time)),[0,1].reverse().smooth().fast(1/11)).diff(src(o3).scale([0,1].smooth()),[0,1].smooth().fast(1/13)).diff(src(o3).modulateScale(src(o3).shift([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth()),[0,1].reverse().smooth().fast(1/17)),[0,1].reverse().smooth().fast(1/19)).diff(src(o3).scroll(()=>Math.sin(time),()=>Math.cos(time)),[0,1].smooth().fast(1/23)).diff(src(o3).modulateScrollY(src(o3).scroll(()=>Math.sin(time),()=>Math.cos(time))).modulateScrollY(src(o3).scroll(()=>Math.cos(time/2),()=>Math.cos(time))),[0,1].reverse().smooth().fast(1/29)).out(o2);
osc(10,1).kaleid([3,7].smooth()).out(o3);
}
function movementmodulation() {
s = window.prompt("Enter speed value. (0.1 is preferable.)", "");
fp = window.prompt("Enter fps value. (60 is preferable.)", "");
t = window.prompt("Enter time value. (30 is preferable.)", "");
fr = window.prompt("Enter frame value. (1 is preferable.)", "");
shape(4,[0,1].smooth(),[0,1].reverse().smooth()).modulateScale(osc(1).shift([0,1].smooth(),[0,1].smooth().fast(1/2),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2))).modulateScale(osc(2).shift([0,1].reverse().smooth().fast(1/8),[0,1].reverse().smooth().fast(1/4),[0,1].reverse().smooth().fast(1/2),[0,1].reverse().smooth())).scale(1/2).modulateScrollY(osc(1).scroll(()=>Math.sin(time),()=>Math.cos(time))).modulateScrollY(osc(2).scroll(()=>Math.cos(time/2),()=>Math.sin(time/2))).diff(osc(10,1).rotate([0,1.57])).modulate([0,1].smooth(),[0,1].smooth()).modulate(solid([0,1].reverse().smooth(),[0,1].reverse().smooth().fast(1/2),[0,1].reverse().smooth().fast(1/4),[0,1].reverse().smooth().fast(1/8)).r([0,1].smooth()).g([0,100].smooth().fast(1/100)).b([0,100].reverse().smooth().fast(1/100)).a([0,1].reverse().smooth())).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth())).invert([0,1].smooth().fast(1/2)).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([0,1].smooth()).contrast([1,2].smooth())).out(),speed=s,fps=fp.time=t,frame=fr;
}
function betweenpixelationandposterization() {
solid().add(o1,[0,1].smooth(1/4)).add(o2,[0,1].reverse().smooth(1/4)).modulateScale(src(o0).scale(1.01),[0,8].smooth()).scale([1/4,3/2].smooth().fast(1/2)).add(o0,[-1,1].smooth().fast(1/4)).out();
src(o3).repeat(2,2).modulateScale(osc(1).shift([0,1].smooth(),[0,1].smooth().fast(1/2),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/8))).mult(osc(1,2,300).diff(gradient(1)).diff(solid([0,1].reverse().smooth(),[0,1].reverse().smooth().fast(1/2),[0,1].reverse().smooth().fast(1/4),[0,1].reverse().smooth().fast(1/8))).invert().hue(()=>Math.cos(time),()=>Math.tan(time),()=>Math.sin(time)).saturate([0,10].reverse().smooth()).brightness([0,1].reverse().smooth()).contrast([1,2].reverse().smooth())).out(o1);
src(o3).repeat(2,2).modulateScrollY(osc(1).scroll(()=>Math.sin(time),()=>Math.cos(time))).modulateScrollY(osc(2).scroll(()=>Math.cos(time/2),()=>Math.sin(time/2))).mult(osc(10,1/2,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth())).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([0,1].smooth()).contrast([0,2].smooth())).out(o2);
shape(4,[0,1].smooth(),[0,1].reverse().smooth()).modulatePixelate(src(o0).color([0,1].smooth(),[0,1].smooth().fast(1/2),[0,1].smooth().fast(1/4)),[0,1].smooth()).out(o3);
}
function coloredwaveandthingslikevisualizedmovablesoundwave() {
shape(4,0.1,0.5).modulateScale(osc(1).colorama(10).shift([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth()).scroll(()=>Math.sin(time),()=>Math.cos(time))).modulateScale(osc(2).colorama(10).shift([0,1].reverse().smooth(),[0,1].reverse().smooth().fast(1/2),[0,1].reverse().smooth().fast(1/4),[0,1].reverse().smooth().fast(1/8)).scroll(()=>Math.cos(time/2),()=>Math.sin(time/2))).scale(1/2).repeat(2,2).color(1,1/8,1).layer(osc(10,0,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth())).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([0,1].smooth()).contrast([1,2].smooth()).scale(0.1).invert().luma()).scale(()=>(a.fft[2]*0.5+1)).out()
}
function jagandslide() {
shape(4,[0,1].smooth(),[0,1].reverse().smooth()).colorama(5).rotate(()=>Math.sin(time)).modulatePixelate(shape(4,[0,1].reverse().smooth(),[0,1].smooth()).colorama(5).rotate(()=>Math.cos(time))).modulateScale(osc(()=>Math.PI).colorama(10).shift([0,1].reverse().smooth(),[0,1].reverse().smooth().fast(1/2),[0,1].reverse().smooth().fast(1/4),[0,1].reverse().smooth().fast(1/8)),[0,1].smooth().fast(1/2)).modulateScrollY(osc(1).scroll(()=>Math.sin(time),()=>Math.cos(time)),[0,1].smooth().fast(1/3)).modulateScrollY(osc(2).scroll(()=>Math.cos(time/2),()=>Math.sin(time/2)),[0,1].smooth().fast(1/5)).out()
}
function modulatedballpuzzlewithringofwater() {
noise(3).diff(noise(3).thresh()).diff(noise(3).luma()).diff(noise(3).colorama()).layer(voronoi(5,1,5).add(voronoi(5,1,5).thresh()).layer(voronoi(5,1,5).luma()).add(voronoi(5,1,5).thresh())).modulate(shape(360,[0,1].smooth(),[0,1].reverse().smooth()).diff(shape(360,[0,1].reverse().smooth(),[0,1].smooth()).thresh()).diff(shape(360,[0,1].smooth(),[0,1].reverse().smooth()).luma()).diff(shape(360,[0,1].reverse().smooth(),[0,1].smooth()).colorama())).blend(osc(10,1/2,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth())).invert().hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([0,1].smooth()).contrast([1,2].smooth()).scale(1/4)).out()
}
function diffusionandcontraction() {
shape(360,[0,1].smooth(),[0,1].reverse().smooth()).scale(1/2).mult(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth())).invert().hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([0,10].smooth()).contrast([1,2].smooth())).modulateScale(src(o0).scale([0,1].smooth())).layer(voronoi(20,1,5).mult(osc(1,2,300).diff(gradient(2)).diff(solid([0,1].reverse().smooth(),[0,1].reverse().smooth().fast(1/2),[0,1].reverse().smooth().fast(1/4),[0,1].reverse().smooth().fast(1/8))).invert().hue(()=>Math.cos(time),()=>Math.tan(time),()=>Math.sin(time)).saturate([0,10].reverse().smooth()).brightness([0,10].reverse().smooth()).contrast([1,2].reverse().smooth())).modulateScale(shape(360,[0,1].reverse(),[0,1].smooth())).luma()).out()
}
function runalittlecodeasanoteonmysmartphoneatnight() {
osc(10,1).kaleid().layer(shape(4,[0,1].smooth(),[0,1].reverse().smooth()).rotate(1.57/2).colorama(10).luma().mask(voronoi(20,1,5).diff(noise(2).thresh()).luma()).modulateScale(src(o0).scale(1.01),[0,1].smooth())).out()
}
function pentagon() {
voronoi(2,1).modulate(shape(5,0,1).colorama(10).luma().scale(1)).layer(noise(2).thresh().modulatePixelate(shape(5),30,30).mask(osc(10,0).kaleid(5).scale([0,2].smooth().fast(1/8)).luma().colorama(10).rotate(1.57).thresh()).add(o0,[0,1].smooth().fast(1/2))).out()
}
function fluctuation() {
solid().mult(shape(360,[0,1].smooth(),[0,1].reverse().smooth()).repeat(16,16)).layer(shape(4,[0,1].reverse().smooth(),[0,1].smooth()).repeat(8,8).luma().colorama([0,1].smooth().fast(1/2))).layer(shape(4,[0,1].smooth(),[0,1].reverse().smooth()).repeat(4,4).luma().colorama([0,1].smooth().fast(1/4))).layer(shape(4,[0,1].reverse().smooth(),[0,1].smooth()).repeat(4,4).luma().colorama([0,1].smooth().fast(1/8))).layer(shape(4,[0,1].smooth(),[0,1].reverse().smooth()).repeat(2,2).luma().colorama([0,1].smooth().fast(1/16))).modulateScale(osc(()=>Math.PI)).scrollX(()=>(time)).modulateScrollY(osc(1).scroll(()=>Math.sin(time),()=>Math.cos(time))).modulateScrollY(osc(2).scroll(()=>Math.cos(time/2),()=>Math.sin(time/2))).modulateRotate(solid(),()=>Math.sin(time),()=>Math.cos(time)).scale([1/8,1].smooth().fast(1/4)).add(o0,[0,1].smooth().fast(1/4)).out()
}
function squareplanets() {
shape(4,[0,1].smooth(),[0,1].reverse().smooth()).rotate(2,2).scale(1/4).layer(shape(4,[0,1].reverse().smooth(),[0,1].smooth()).scale(1/8).rotate(-2,-2).scrollX(1).scroll(()=>Math.sin(time*2)/4,()=>Math.cos(time*2)/4).luma()).layer(shape(4,[0,1].smooth(),[0,1].reverse().smooth()).scale(1/8).rotate(2,2).scrollX(1).scroll(()=>Math.sin(time*2)/2.75,()=>Math.cos(time*2)/2.75).luma()).layer(shape(4,[0,1].smooth(),[0,1].reverse().smooth()).scale(1/8).rotate(-2,-2).scrollX(1).scroll(()=>Math.sin(time*2)/2,()=>Math.cos(time*2)/2).luma()).add(o0,[0,1].smooth()).repeat([1,1].smooth().fast(1/4),[1,1].smooth().fast(1/4)).scale(1.125).repeat([1,4].smooth().fast(1/16),[1,4].smooth().fast(1/16)).out()
}
function padcontrol() {
var n = [4,16].smooth().fast(1/16);
pad=()=>osc(10,1/2,300).diff(osc(10,1/2,300).rotate(1.57)).pixelate(n,n).contrast(2);
solid().layer(src(o1).mult(src(o2))).out();
shape(4,[0,1].smooth().fast(1/16),[0,1].reverse().smooth().fast(1/16)).repeat(8,8).mult(o1,63/64).contrast(2).out(o1);
pad().scale([1,2].reverse().smooth()).mult(o2,63/64).out(o2);
}
function bitrate() {
shape(360).scroll(()=>time,()=>time).scale(1/256).repeat(8,8).mult(osc(10,1).repeatX(100).rotate(1.57)).layer(src(o0).luma().colorama([0,1].smooth())).scale([0,10].smooth()).out()
}
function leverandferriswheel() {
A=window.innerHeight/window.innerWidth;
osc(10,1/2).modulateScale(shape(2,[0,1].smooth(),[0,1].reverse().smooth()).diff(shape(2,[0,1].smooth(),[0,1].reverse().smooth()).rotate(1.57))).diff(shape(4,[0,1].reverse().smooth(),[0,1].smooth()).scale(2.875).repeat(3,3)).scale([0,1].smooth().fast(1/4)).modulateScrollY(osc(1).scroll(()=>Math.sin(time),()=>Math.cos(time))).modulateScrollY(osc(2).scroll(()=>Math.cos(time/2),()=>Math.sin(time/2))).modulateScale(osc(3).colorama([0,5].smooth().fast(1/10)).shift([0,1].smooth(),[0,1].smooth().fast(1/2),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/8))).scale([1/4,1].smooth().fast(1/16)).color([0,1].reverse().smooth().fast(1/2),[0,1].reverse().smooth().fast(1/4),[0,1].reverse().smooth().fast(1/8)).diff(osc(10,0.5,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth())).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([0,1].smooth()).contrast([1,2].smooth()).thresh().luma()).layer(shape(2,[0,1].smooth(),[0,1].reverse().smooth()).luma().r([0,1].smooth()).mask(shape(3,[0,1].reverse().smooth(),[0,1].smooth()).luma().g([0,100].reverse().smooth().fast(1/100))).scale(1/2).rotate(1,1).repeat(4,4).rotate(()=>Math.sin(time)).rotate(-1,-1).scale([0,1].smooth().fast(1/2))).layer(shape(4,[0,1].smooth(),[0,1].reverse().smooth()).luma().a([0,1].reverse().smooth()).mask(shape(360,[0,1].reverse().smooth(),[0,1].smooth()).luma().g([0,100].smooth().fast(1/100)).scale(1/2).rotate(()=>(time)).repeat(2,2)).rotate(()=>Math.cos(time)).rotate(()=>(time*-1)).scale([0,1].reverse().smooth().fast(1/2))).scale([1/2,1].ease('easeInOutQuad'),A,[1/2,1].ease('easeInOutQuint')).scale([3/4,2].reverse().ease('sin'),1/A,[3/4,2].reverse().smooth()).out();
}
function circleandoval() {
shape(360,[0,1].smooth(),[0,1].reverse().smooth()).scale([1/2,2].smooth(),[1/2,2].reverse().smooth()).scale(1/2).rotate([0,10].smooth(),[0,10].smooth()).scrollX([-1,1].smooth()).repeat([1,4].smooth(),[1,4].smooth()).add(o0,[-1,1].smooth().fast(1/16)).out()
}
function smooth() {
osc(10,1/8,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth())).contrast([1/2,2].smooth().fast(1/2)).kaleid(360).scale([1/2,2].smooth(),[1/2,2].reverse().smooth()).scale(1/2).rotate(()=>(time)).layer(voronoi(5,1,5).luma()).modulate(noise(3).thresh()).modulateScale(shape(360,[0,1].smooth(),[0,1].reverse().smooth()).colorama(5).scale([1/2,2].smooth(),[1/2,2].reverse().smooth()).scale(1/2).rotate(()=>(time*-1))).color([0,1].smooth(),[0,1].smooth().fast(1/2),[0,1].smooth().fast(1/4)).out()
}
function fadingshapes() {
solid().layer(src(o1).repeat(8,8).luma()).layer(src(o2).repeat(4,4).luma()).layer(src(o3).repeat(2,2).luma()).scale([1/4,1].smooth().fast(1/5)).out();
osc(10,1/8).kaleid(4).rotate(1.57/2).mask(shape(4,[0,1].smooth().fast(1/2),[0,1].reverse().smooth().fast(1/2))).color([0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth()).out(o1);
osc(10,-1/8).kaleid(3).rotate(1.57).mask(shape(3,[0,1].reverse().smooth().fast(1/4),[0,1].smooth().fast(1/4))).color([0,1].smooth().fast(1/2),[0,1].smooth(),[0,1].smooth().fast(1/4)).out(o2);
osc(10,1/8).kaleid(360).mask(shape(360,[0,1].reverse().smooth().fast(1/8),[0,1].reverse().smooth().fast(1/8))).color([0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth()).out(o3);
}
function circlemodulationversion1() {
osc(10,1/4,300).kaleid(360).mask(src(o1).luma()).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([-1,0].smooth()).contrast([1,2].smooth()).scale([1/2,1].smooth(),[1/2,1].reverse().smooth()).out();
shape(360,[0,1].smooth(),[0,1].reverse().smooth()).modulateScale(shape(360,[0,1].reverse().smooth(),[0,1].smooth()).colorama(1).diff(src(o1)).thresh(1/2,1/4)).luma().out(o1);
}
function circlemodulationversion2() {
solid().layer(src(o1).luma()).out();
osc(10,1/4,300).kaleid(360).mask(src(o2).luma()).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([-1,0].smooth()).contrast([1,2].smooth()).scale([1/2,1].smooth(),[1/2,1].reverse().smooth()).out(o1);
shape(360,[0,1].smooth(),[0,1].reverse().smooth()).modulateScale(shape(360,[0,1].reverse().smooth(),[0,1].smooth()).colorama(1).diff(src(o2)).thresh(1/2,1/4)).luma().out(o2);
}
function circlemodulationversion3() {
solid().layer(src(o1).luma()).scale([1/2,1].smooth(),[1/2].reverse().smooth()).rotate([0,10].smooth().fast(1/10),[0,10].smooth().fast(1/10)).out();
osc(10,1/4,300).kaleid(360).mask(src(o2).luma()).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([-1,0].smooth()).contrast([1,2].smooth()).scale([1/2,1].smooth(),[1/2,1].reverse().smooth()).out(o1);
shape(360,[0,1].smooth(),[0,1].reverse().smooth()).modulateScale(shape(360,[0,1].reverse().smooth(),[0,1].smooth()).colorama(1).diff(src(o2)).thresh(1/2,1/4)).luma().out(o2);
}
function circlemodulationversion4() {
solid().layer(src(o1).luma()).scale([1/2,1].smooth(),[1/2].reverse().smooth()).rotate([0,10].smooth().fast(1/10),[0,10].smooth().fast(1/10)).add(o0,[-1,1].smooth().fast(1/8)).out();
osc(10,1/4,300).kaleid(360).mask(src(o2).luma()).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([-1,0].smooth()).contrast([1,2].smooth()).scale([1/2,1].smooth(),[1/2,1].reverse().smooth()).out(o1);
shape(360,[0,1].smooth(),[0,1].reverse().smooth()).modulateScale(shape(360,[0,1].reverse().smooth(),[0,1].smooth()).colorama(1).diff(src(o2)).thresh(1/2,1/4)).luma().out(o2);
}
function circlemodulationversion5() {
solid().layer(src(o1).luma()).rotate([0,10].smooth().fast(1/10),[0,10].smooth().fast(1/10)).out();
osc(10,1/4,300).kaleid(360).mask(src(o2).luma()).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([-1,0].smooth()).contrast([1,2].smooth()).scale([1/2,1].smooth(),[1/2,1].reverse().smooth()).out(o1);
shape(360,[0,1].smooth(),[0,1].reverse().smooth()).modulateScale(shape(360,[0,1].reverse().smooth(),[0,1].smooth()).colorama(1).diff(src(o2)).thresh(1/2,1/4)).luma().out(o2);
}
function circlemodulationversion6() {
solid().layer(src(o1).luma()).rotate([0,10].smooth().fast(1/10),[0,10].smooth().fast(1/10)).add(o0,[0,4/3].smooth().fast(1/2)).out();
osc(10,1/4,300).kaleid(360).mask(src(o2).luma()).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([-1,0].smooth()).contrast([1,2].smooth()).scale([1/2,1].smooth(),[1/2,1].reverse().smooth()).out(o1);
shape(360,[0,1].smooth(),[0,1].reverse().smooth()).modulateScale(shape(360,[0,1].reverse().smooth(),[0,1].smooth()).colorama(1).diff(src(o2)).thresh(1/2,1/4)).luma().out(o2);
}
function conveyor() {
osc(10,1/4).diff(osc(10,1/4).rotate(1.57)).rotate(1.57/2).luma([0,1].smooth()).layer(osc(10,1/4).diff(osc(10,1/4).rotate(1.57)).rotate(1.57*1.5).luma([0,1].reverse().smooth().fast(1/2))).layer(osc(10,-1/4).diff(osc(10,-1/4).rotate(1.57)).rotate(1.57/2).luma([0,1].smooth().fast(1/3))).layer(osc(10,-1/4).diff(osc(10,-1/4).rotate(1.57)).rotate(1.57*1.5).luma([0,1].reverse().smooth().fast(1/4))).layer(shape(360,[0,1].smooth(),[0,1].reverse().smooth()).repeat(2,2).scrollX(()=>(time/2)).luma([0,1].smooth().fast(1/5))).layer(shape(360,[0,1].reverse().smooth(),[0,1].smooth()).repeat(2,2).scrollX(()=>(time/-2)).luma([0,1].reverse().smooth().fast(1/6))).layer(shape(360,[0,1].smooth(),[0,1].reverse().smooth()).repeat(2,2).scrollY(()=>(time/-2)).luma([0,1].smooth().fast(1/7))).layer(shape(360,[0,1].reverse().smooth(),[0,1].smooth()).repeat(2,2).scrollY(()=>(time/2)).luma([0,1].reverse().smooth().fast(1/8))).out()
}
function ellipsepaintover() {
shape(360,[0,1].smooth(),[0,1].reverse().smooth()).scale([1/2,1].smooth(),[1/2,1].reverse().smooth()).rotate([0,10].smooth().fast(1/10),[0,10].smooth().fast(1/10)).add(src(o0).blend(o0,[0,2].smooth().fast(1/8)),[-1,1].reverse().smooth().fast(1/8)).luma().diff(o0,[0,1].smooth().fast(1/8)).mult(shape(360,[0,1].reverse().smooth(),[0,1].smooth()).scale([1/2,2].smooth().fast(1/2))).out()
}
function movablehologramcomposedofrectangles() {
var xpos = [0.15,0.15,0.85,0.85].smooth().fast(10);
var ypos = [0.15,0.85,0.85,0.15].smooth().fast(10);
substrate = () => shape(4,0.4,0.6).colorama(0.1).luma(0.99).scale(1.01).mult(solid(0,[0,1,1].reverse().smooth(),[1,0,1].reverse().smooth()).brightness([0,1].smooth()).contrast(2)).scale(1.1);
light = () => shape(360,0,0.01).scale(2).mult(solid(0,[0,1,1].smooth(),[1,0,1].smooth()).brightness([0,1].smooth()).contrast(5)).scroll(xpos,ypos).scroll(0.5,0.5).scale(3/4*1.01).scale(1.1);
circuit = () => solid().layer(substrate()).layer(light().luma().contrast(10));
solid().layer(src(o1)).layer(src(o2)).blend(circuit().scroll(()=>Math.cos(time),()=>Math.sin(time))).out();
light().contrast(10).scroll(()=>Math.sin(time),()=>Math.cos(time)).add(o1,[0,1].smooth().fast(1/8)).blend(o1,[0,1].smooth().fast(1/16)).out(o1);
substrate().scroll(()=>Math.sin(time),()=>Math.cos(time)).add(o2,[0.98,1].smooth()).blend(o2,[0,1].smooth()).out(o2);
}
function workmadeduringabittime() {
noise(10).colorama(.001).saturate(99).posterize(.999).layer(voronoi(20,1,10).luma()).layer(shape(360,0,1).repeat(75,75).luma()).out()
}
function enlargementandcontractionoftheinnerandouterdiametersofacircle() {
voronoi(20,1,5).color([0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth()).mult(osc(10,1/2,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth())).brightness(10)).mask(shape(360,[0,1].smooth(),[0,1].reverse().smooth()).scale([1/2,2].smooth(1/2)).rotate(()=>(time)).invert().colorama(10)).out()
}
function ringcomposedofpoints() {
shape(360,[0,1].smooth(),[0,1].reverse().smooth()).scale(1/64).mult(osc(10,1/2,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth())).invert().hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([0,1].smooth()).contrast([1,2].smooth())).scroll(()=>Math.sin(time)/10,()=>Math.cos(time)/10).blend(o0,[0,1].smooth().fast(1/2)).rotate(1,1).blend(shape(360,[0,1].reverse().smooth(),[0,1].smooth()).scale(1/64).scroll(()=>Math.cos(time)/10,()=>Math.sin(time)/10).blend(o0,[0,1].smooth().fast(1/2)).rotate(-1,-1)).scale([1/2,1].smooth()).add(o0,[0,3/4].smooth()).scale(13/12).layer(shape(360,[0,1].smooth(),[0,1].reverse().smooth()).scale([0,2].smooth()).brightness(-1).scale([1,2].reverse().smooth()).mask(shape(360,[0,1].reverse().smooth(),[0,1].smooth())).luma()).scale([0.99,1.01].smooth()).out()
}
function flashingswirlcomposedofpoints() {
shape(360,[0,1].smooth(),[0,1].reverse().smooth()).mult(osc(10,1/2,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth())).invert([0,1].smooth().fast(1/8)).hue(()=>Math.sin(time),()=>Math.cos(time),()=>Math.tan(time)).saturate([0,10].smooth()).brightness([0,1].smooth()).contrast([1,2].smooth()).invert([0,1].reverse().smooth().fast(1/16))).scale([1/8,1/64].reverse().smooth().fast(1/4)).scroll(()=>Math.sin(time)*Math.log(time),()=>Math.cos(time)*Math.log(time)).blend(o0,[3/5,13/20].smooth().fast(1/2)).rotate(1,1).scale([1/2,1].smooth()).add(o0,[1/4,9/20].smooth()).scale([7/8,1].smooth()).colorama([-0.01,0.01].smooth().fast(1/10)).contrast([0.99,1.01].smooth()).out()
}
function pond() {
solid().layer(shape(360,[0,1].smooth(),[0,1].reverse().smooth()).thresh()).diff(shape(360,[0,1].reverse().smooth(),[0,1].smooth()).luma()).modulate(shape(360,[0,1].smooth().fast(1/2),[0,1].reverse().smooth().fast(1/2)).colorama([0,10].smooth().fast(1/10)).thresh()).modulate(shape(360,[0,1].reverse().smooth().fast(1/2),[0,1].smooth().fast(1/2)).colorama([0,10].reverse().smooth().fast(1/10)).luma()).rotate(1/50,1/50).scale(4/5).mult(osc(10,1/2,300).diff(gradient(1)).diff(solid([0,1].smooth().fast(1/8),[0,1].smooth().fast(1/4),[0,1].smooth().fast(1/2),[0,1].smooth()))).blend(o0).out()
}
</script>
<br>
<p>※このページはこれまで<a href="https://hydra.ojack.xyz"><font color="yellow">hydra</font></a>で作った作品の一部を掲載しています。その他の作品や詳細は<a href="https://github.com/Uchida16104/LiveCodingPortfolio"><font color="yellow">GitHub</font></a>や<a href="https://twitter.com/hydra_patterns"><font color="yellow">@hydra_patterns</font></a>を参照して下さい。</p>
<p><a href="https://github.com/Uchida16104/Uchida16104.github.io"><font color="yellow">参照</font></a></p>
<br>
<p>*This is designed for Android Smartphone, and describing a part of my works I programmed on <a href="https://hydra.ojack.xyz"><font color="yellow">hydra</font></a> until now. Please browse <a href="https://github.com/Uchida16104/LiveCodingPortfolio"><font color="yellow">GitHub</font></a> or <a href="https://twitter.com/hydra_patterns"><font color="yellow">@hydra_patterns</font></a> if you view other works or the detail of these works.</p>
<p><a href="https://github.com/Uchida16104/Uchida16104.github.io"><font color="yellow">Reference</font></a></p>
</td>
</tr>
</table>
</body>
</html>