gl-transitions 2.3.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,514 @@
1
+ // VhsTracking — MSL, generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/VhsTracking.glsl
2
+ // Author: gre
3
+ // License: MIT
4
+ // Description: Tape-tracking bands of white snow roll down the frame, tearing the lines around them, with smeared color, wobbling lines, a jittering strip at the bottom and a dropout flash, as the incoming image is recorded over the outgoing one under the densest band
5
+ // Bindings and uniform layout: see the gl-transitions package README
6
+
7
+ // language: metal1.0
8
+ #include <metal_stdlib>
9
+ #include <simd/simd.h>
10
+
11
+ using metal::uint;
12
+
13
+ struct Uniforms {
14
+ float progress;
15
+ float ratio;
16
+ int bands;
17
+ float noise;
18
+ float bleed;
19
+ float wobble;
20
+ };
21
+
22
+ float luma(
23
+ thread metal::float3& c
24
+ ) {
25
+ metal::float3 _e73 = c;
26
+ return metal::dot(_e73, metal::float3(0.299, 0.587, 0.114));
27
+ }
28
+
29
+ metal::float4 getFromColor(
30
+ thread metal::float2& uv,
31
+ metal::texture2d<float, metal::access::sample> _from,
32
+ metal::sampler _sampler
33
+ ) {
34
+ float _e74 = uv[0u];
35
+ float _e76 = uv[1u];
36
+ metal::float4 _e79 = _from.sample(_sampler, metal::float2(_e74, 1.0 - _e76), metal::level(0.0));
37
+ return _e79;
38
+ }
39
+
40
+ metal::float4 getToColor(
41
+ thread metal::float2& uv_1,
42
+ metal::sampler _sampler,
43
+ metal::texture2d<float, metal::access::sample> _to
44
+ ) {
45
+ float _e74 = uv_1[0u];
46
+ float _e76 = uv_1[1u];
47
+ metal::float4 _e79 = _to.sample(_sampler, metal::float2(_e74, 1.0 - _e76), metal::level(0.0));
48
+ return _e79;
49
+ }
50
+
51
+ metal::float2 mirror(
52
+ thread metal::float2& v
53
+ ) {
54
+ metal::float2 _e73 = v;
55
+ metal::float2 _e74 = metal::float2(2.0);
56
+ return metal::float2(1.0) - metal::abs(metal::float2(1.0) - (_e73 - (metal::floor(_e73 / _e74) * _e74)));
57
+ }
58
+
59
+ metal::float4 tape(
60
+ thread metal::float2& p,
61
+ thread bool& fresh,
62
+ metal::texture2d<float, metal::access::sample> _from,
63
+ metal::sampler _sampler,
64
+ metal::texture2d<float, metal::access::sample> _to
65
+ ) {
66
+ metal::float2 param = {};
67
+ metal::float4 c_1 = {};
68
+ metal::float4 local = {};
69
+ metal::float2 param_1 = {};
70
+ metal::float2 param_2 = {};
71
+ metal::float2 _e79 = p;
72
+ param = _e79;
73
+ metal::float2 _e80 = mirror(param);
74
+ p = _e80;
75
+ bool _e81 = fresh;
76
+ if (_e81) {
77
+ metal::float2 _e82 = p;
78
+ param_1 = _e82;
79
+ metal::float4 _e83 = getToColor(param_1, _sampler, _to);
80
+ local = _e83;
81
+ } else {
82
+ metal::float2 _e84 = p;
83
+ param_2 = _e84;
84
+ metal::float4 _e85 = getFromColor(param_2, _from, _sampler);
85
+ local = _e85;
86
+ }
87
+ metal::float4 _e86 = local;
88
+ c_1 = _e86;
89
+ metal::float4 _e87 = c_1;
90
+ float _e90 = c_1[3u];
91
+ metal::float3 _e91 = _e87.xyz * _e90;
92
+ float _e93 = c_1[3u];
93
+ return metal::float4(_e91.x, _e91.y, _e91.z, _e93);
94
+ }
95
+
96
+ float bandDensity(
97
+ thread float& y,
98
+ thread float& c_2,
99
+ thread float& w,
100
+ thread float& jitter
101
+ ) {
102
+ float d = {};
103
+ float _e77 = y;
104
+ float _e78 = c_2;
105
+ float _e81 = w;
106
+ float _e83 = jitter;
107
+ d = (metal::abs(_e77 - _e78) / _e81) + (0.35 * _e83);
108
+ float _e86 = d;
109
+ return 1.0 - metal::smoothstep(0.0, 1.0, _e86);
110
+ }
111
+
112
+ float hash12(
113
+ thread metal::float2& v_1
114
+ ) {
115
+ metal::float3 v3_ = {};
116
+ metal::float2 _e74 = v_1;
117
+ v3_ = metal::fract(_e74.xyx * 0.1031);
118
+ metal::float3 _e78 = v3_;
119
+ metal::float3 _e79 = v3_;
120
+ metal::float3 _e84 = v3_;
121
+ v3_ = _e84 + metal::float3(metal::dot(_e78, _e79.yzx + metal::float3(33.33)));
122
+ float _e88 = v3_[0u];
123
+ float _e90 = v3_[1u];
124
+ float _e93 = v3_[2u];
125
+ return metal::fract((_e88 + _e90) * _e93);
126
+ }
127
+
128
+ metal::float4 transition(
129
+ thread metal::float2& uv_2,
130
+ metal::texture2d<float, metal::access::sample> _from,
131
+ metal::sampler _sampler,
132
+ metal::texture2d<float, metal::access::sample> _to,
133
+ constant Uniforms& uniforms
134
+ ) {
135
+ float h = {};
136
+ float env = {};
137
+ float f = {};
138
+ float flash = {};
139
+ float frame = {};
140
+ float line = {};
141
+ float jitter_1 = {};
142
+ metal::float2 param_3 = {};
143
+ float c0_ = {};
144
+ bool fresh_1 = {};
145
+ float dens = {};
146
+ float param_4 = {};
147
+ float param_5 = {};
148
+ float param_6 = {};
149
+ float param_7 = {};
150
+ float tear = {};
151
+ int i = {};
152
+ float k = {};
153
+ float w_1 = {};
154
+ metal::float2 param_8 = {};
155
+ float speed = {};
156
+ float cy = {};
157
+ metal::float2 param_9 = {};
158
+ float param_10 = {};
159
+ float param_11 = {};
160
+ float param_12 = {};
161
+ float param_13 = {};
162
+ float rowTear = {};
163
+ metal::float2 param_14 = {};
164
+ float dx = {};
165
+ float strip = {};
166
+ metal::float2 param_15 = {};
167
+ metal::float2 q = {};
168
+ metal::float4 c_3 = {};
169
+ metal::float2 param_16 = {};
170
+ bool param_17 = {};
171
+ float len = {};
172
+ metal::float4 avg = {};
173
+ int i_1 = {};
174
+ float u = {};
175
+ metal::float2 param_18 = {};
176
+ bool param_19 = {};
177
+ metal::float3 chroma = {};
178
+ metal::float3 param_20 = {};
179
+ metal::float3 rgb = {};
180
+ metal::float3 param_21 = {};
181
+ metal::float3 param_22 = {};
182
+ metal::float2 cell = {};
183
+ float n = {};
184
+ metal::float2 param_23 = {};
185
+ float amount = {};
186
+ float snow = {};
187
+ float local_1 = {};
188
+ metal::float2 param_24 = {};
189
+ float g = {};
190
+ metal::float2 param_25 = {};
191
+ float local_2 = {};
192
+ float dark = {};
193
+ float group = {};
194
+ float drop = {};
195
+ metal::float2 param_26 = {};
196
+ metal::float2 param_27 = {};
197
+ float _e136 = uniforms.progress;
198
+ h = metal::clamp(2.5 * (1.0 - metal::abs((2.0 * _e136) - 1.0)), 0.0, 1.0);
199
+ float _e143 = h;
200
+ float _e144 = h;
201
+ float _e146 = h;
202
+ env = (_e143 * _e144) * (3.0 - (2.0 * _e146));
203
+ float _e151 = uniforms.progress;
204
+ f = metal::clamp(1.0 - (metal::abs(_e151 - 0.5) / 0.04), 0.0, 1.0);
205
+ float _e157 = f;
206
+ float _e158 = f;
207
+ float _e160 = f;
208
+ flash = (_e157 * _e158) * (3.0 - (2.0 * _e160));
209
+ float _e165 = uniforms.progress;
210
+ frame = metal::floor(_e165 * 40.0);
211
+ float _e169 = uv_2[1u];
212
+ line = metal::floor(_e169 * 220.0);
213
+ float _e172 = line;
214
+ float _e173 = frame;
215
+ param_3 = metal::float2(_e172, _e173 + 7.0);
216
+ float _e176 = hash12(param_3);
217
+ jitter_1 = _e176 - 0.5;
218
+ float _e179 = uniforms.progress;
219
+ c0_ = metal::mix(1.132, -0.132, _e179);
220
+ float _e182 = uv_2[1u];
221
+ float _e183 = c0_;
222
+ float _e184 = jitter_1;
223
+ fresh_1 = _e182 > (_e183 + (0.088 * _e184));
224
+ float _e189 = uv_2[1u];
225
+ param_4 = _e189;
226
+ float _e190 = c0_;
227
+ param_5 = _e190;
228
+ param_6 = 0.11;
229
+ float _e191 = jitter_1;
230
+ param_7 = _e191;
231
+ float _e192 = bandDensity(param_4, param_5, param_6, param_7);
232
+ dens = _e192;
233
+ float _e194 = uv_2[1u];
234
+ float _e195 = c0_;
235
+ tear = 1.0 - metal::smoothstep(0.0, 1.0, metal::abs(_e194 - _e195) / 0.275);
236
+ i = 1;
237
+ uint2 loop_bound = uint2(4294967295u);
238
+ bool loop_init = true;
239
+ while(true) {
240
+ if (metal::all(loop_bound == uint2(0u))) { break; }
241
+ loop_bound -= uint2(loop_bound.y == 0u, 1u);
242
+ if (!loop_init) {
243
+ int _e256 = i;
244
+ i = as_type<int>(as_type<uint>(_e256) + as_type<uint>(1));
245
+ }
246
+ loop_init = false;
247
+ int _e201 = i;
248
+ if (_e201 < 4) {
249
+ int _e203 = i;
250
+ int _e205 = uniforms.bands;
251
+ if (_e203 < _e205) {
252
+ int _e207 = i;
253
+ k = static_cast<float>(_e207);
254
+ float _e209 = k;
255
+ param_8 = metal::float2(_e209, 3.0);
256
+ float _e211 = hash12(param_8);
257
+ w_1 = 0.11 * (0.35 + (0.2 * _e211));
258
+ float _e215 = k;
259
+ speed = 1.3 + (0.9 * _e215);
260
+ float _e218 = w_1;
261
+ float _e220 = w_1;
262
+ float _e223 = k;
263
+ param_9 = metal::float2(_e223, 5.0);
264
+ float _e225 = hash12(param_9);
265
+ float _e226 = speed;
266
+ float _e228 = uniforms.progress;
267
+ cy = -(_e218) + ((1.0 + (2.0 * _e220)) * metal::fract(_e225 - (_e226 * _e228)));
268
+ float _e234 = dens;
269
+ float _e236 = uv_2[1u];
270
+ param_10 = _e236;
271
+ float _e237 = cy;
272
+ param_11 = _e237;
273
+ float _e238 = w_1;
274
+ param_12 = _e238;
275
+ float _e239 = jitter_1;
276
+ param_13 = _e239;
277
+ float _e240 = bandDensity(param_10, param_11, param_12, param_13);
278
+ dens = metal::max(_e234, 0.6 * _e240);
279
+ float _e243 = tear;
280
+ float _e245 = uv_2[1u];
281
+ float _e246 = cy;
282
+ float _e249 = w_1;
283
+ tear = metal::max(_e243, 0.5 * (1.0 - metal::smoothstep(0.0, 1.0, metal::abs(_e245 - _e246) / (2.5 * _e249))));
284
+ }
285
+ continue;
286
+ } else {
287
+ break;
288
+ }
289
+ }
290
+ float _e258 = env;
291
+ float _e259 = dens;
292
+ dens = _e259 * _e258;
293
+ float _e261 = env;
294
+ float _e262 = tear;
295
+ tear = _e262 * _e261;
296
+ float _e265 = uv_2[1u];
297
+ float _e269 = frame;
298
+ param_14 = metal::float2(metal::floor((_e265 * 220.0) * 0.5), _e269 + 31.0);
299
+ float _e272 = hash12(param_14);
300
+ rowTear = _e272 - 0.5;
301
+ float _e275 = uniforms.wobble;
302
+ float _e276 = env;
303
+ float _e279 = uv_2[1u];
304
+ float _e282 = uniforms.progress;
305
+ float _e287 = jitter_1;
306
+ dx = (_e275 * _e276) * ((0.006 * metal::sin((_e279 * 7.0) + (_e282 * 23.0))) + (0.004 * _e287));
307
+ float _e292 = uniforms.noise;
308
+ float _e295 = tear;
309
+ float _e298 = rowTear;
310
+ float _e300 = dx;
311
+ dx = _e300 + ((((0.3 + (0.7 * _e292)) * _e295) * 0.18) * _e298);
312
+ float _e302 = env;
313
+ float _e304 = uv_2[1u];
314
+ strip = _e302 * (1.0 - metal::smoothstep(0.0, 0.06, _e304));
315
+ float _e308 = strip;
316
+ float _e310 = uv_2[1u];
317
+ float _e316 = frame;
318
+ param_15 = metal::float2(_e316, 41.0);
319
+ float _e318 = hash12(param_15);
320
+ float _e322 = dx;
321
+ dx = _e322 + ((_e308 * (0.03 + (0.06 * (1.0 - (_e310 / 0.06))))) * (0.6 + (0.8 * _e318)));
322
+ float _e325 = uv_2[0u];
323
+ float _e326 = dx;
324
+ float _e329 = uv_2[1u];
325
+ q = metal::float2(_e325 + _e326, _e329);
326
+ metal::float2 _e331 = q;
327
+ param_16 = _e331;
328
+ bool _e332 = fresh_1;
329
+ param_17 = _e332;
330
+ metal::float4 _e333 = tape(param_16, param_17, _from, _sampler, _to);
331
+ c_3 = _e333;
332
+ float _e335 = c_3[3u];
333
+ if (_e335 <= 0.0) {
334
+ return metal::float4(0.0, 0.0, 0.0, 0.0);
335
+ }
336
+ float _e338 = uniforms.bleed;
337
+ float _e339 = dens;
338
+ float _e343 = env;
339
+ len = (_e338 * (0.02 + (0.05 * _e339))) * _e343;
340
+ metal::float4 _e345 = c_3;
341
+ avg = _e345;
342
+ float _e346 = len;
343
+ if (_e346 > 0.0) {
344
+ avg = metal::float4(0.0, 0.0, 0.0, 0.0);
345
+ i_1 = 0;
346
+ uint2 loop_bound_1 = uint2(4294967295u);
347
+ bool loop_init_1 = true;
348
+ while(true) {
349
+ if (metal::all(loop_bound_1 == uint2(0u))) { break; }
350
+ loop_bound_1 -= uint2(loop_bound_1.y == 0u, 1u);
351
+ if (!loop_init_1) {
352
+ int _e365 = i_1;
353
+ i_1 = as_type<int>(as_type<uint>(_e365) + as_type<uint>(1));
354
+ }
355
+ loop_init_1 = false;
356
+ int _e348 = i_1;
357
+ if (_e348 < 6) {
358
+ int _e350 = i_1;
359
+ u = (static_cast<float>(_e350) + 0.5) / 6.0;
360
+ metal::float2 _e354 = q;
361
+ float _e355 = len;
362
+ float _e356 = u;
363
+ param_18 = _e354 - metal::float2(_e355 * (0.4 + _e356), 0.0);
364
+ bool _e361 = fresh_1;
365
+ param_19 = _e361;
366
+ metal::float4 _e362 = tape(param_18, param_19, _from, _sampler, _to);
367
+ metal::float4 _e363 = avg;
368
+ avg = _e363 + _e362;
369
+ continue;
370
+ } else {
371
+ break;
372
+ }
373
+ }
374
+ metal::float4 _e367 = avg;
375
+ avg = _e367 / metal::float4(6.0);
376
+ }
377
+ metal::float4 _e370 = avg;
378
+ metal::float4 _e372 = avg;
379
+ param_20 = _e372.xyz;
380
+ float _e374 = luma(param_20);
381
+ float _e378 = avg[3u];
382
+ chroma = (_e370.xyz - metal::float3(_e374)) / metal::float3(metal::max(_e378, 0.00001));
383
+ metal::float4 _e382 = c_3;
384
+ param_21 = _e382.xyz;
385
+ float _e384 = luma(param_21);
386
+ metal::float3 _e385 = chroma;
387
+ float _e387 = c_3[3u];
388
+ rgb = metal::float3(_e384) + (_e385 * _e387);
389
+ metal::float3 _e391 = rgb;
390
+ metal::float3 _e392 = rgb;
391
+ param_22 = _e392;
392
+ float _e393 = luma(param_22);
393
+ float _e395 = dens;
394
+ rgb = metal::mix(_e391, metal::float3(_e393), metal::float3(0.6 * _e395));
395
+ float _e400 = uv_2[0u];
396
+ float _e404 = uniforms.ratio;
397
+ float _e406 = jitter_1;
398
+ float _e410 = line;
399
+ cell = metal::float2(metal::floor((((_e400 * 220.0) * 0.3) * _e404) + (40.0 * _e406)), _e410);
400
+ metal::float2 _e412 = cell;
401
+ float _e413 = frame;
402
+ param_23 = _e412 + (metal::float2(37.0, 17.0) * _e413);
403
+ float _e416 = hash12(param_23);
404
+ n = _e416;
405
+ float _e418 = uniforms.noise;
406
+ float _e419 = dens;
407
+ float _e421 = strip;
408
+ float _e425 = flash;
409
+ amount = metal::clamp((_e418 * metal::max(1.3 * _e419, 0.8 * _e421)) + (0.35 * _e425), 0.0, 1.0);
410
+ float _e429 = amount;
411
+ if (_e429 > 0.0) {
412
+ float _e431 = amount;
413
+ float _e433 = amount;
414
+ float _e436 = n;
415
+ local_1 = metal::smoothstep(1.0 - _e431, 1.0 - (0.6 * _e433), _e436);
416
+ } else {
417
+ local_1 = 0.0;
418
+ }
419
+ float _e438 = local_1;
420
+ snow = _e438;
421
+ metal::float2 _e439 = cell;
422
+ float _e441 = frame;
423
+ param_24 = _e439.yx + metal::float2(_e441);
424
+ float _e444 = hash12(param_24);
425
+ float _e447 = snow;
426
+ snow = _e447 * (0.55 + (0.45 * _e444));
427
+ float _e450 = uv_2[0u];
428
+ float _e453 = uniforms.ratio;
429
+ float _e456 = line;
430
+ float _e458 = frame;
431
+ param_25 = metal::float2(metal::floor((_e450 * 220.0) * _e453), _e456) + (metal::float2(13.0, 29.0) * _e458);
432
+ float _e461 = hash12(param_25);
433
+ g = _e461;
434
+ float _e462 = snow;
435
+ float _e463 = amount;
436
+ if (_e463 > 0.0) {
437
+ float _e465 = amount;
438
+ float _e468 = g;
439
+ local_2 = 0.7 * metal::smoothstep(1.0 - (0.4 * _e465), 1.0, _e468);
440
+ } else {
441
+ local_2 = 0.0;
442
+ }
443
+ float _e471 = local_2;
444
+ snow = metal::max(_e462, _e471);
445
+ float _e473 = g;
446
+ float _e474 = amount;
447
+ dark = (_e473 < (0.1 * _e474)) ? 1.0 : 0.0;
448
+ float _e479 = uv_2[1u];
449
+ group = metal::floor((_e479 * 220.0) / 3.0);
450
+ float _e483 = flash;
451
+ float _e486 = group;
452
+ float _e488 = uv_2[0u];
453
+ float _e490 = group;
454
+ float _e491 = frame;
455
+ param_26 = metal::float2(_e490, _e491);
456
+ float _e493 = hash12(param_26);
457
+ float _e497 = frame;
458
+ param_27 = metal::float2(_e486, metal::floor((_e488 * 6.0) + (5.0 * _e493)) + (_e497 * 7.0));
459
+ float _e501 = hash12(param_27);
460
+ drop = metal::step(1.0 - (0.15 * _e483), _e501);
461
+ float _e503 = dark;
462
+ metal::float3 _e506 = rgb;
463
+ rgb = _e506 * (1.0 - (0.5 * _e503));
464
+ float _e508 = snow;
465
+ float _e509 = drop;
466
+ float _e511 = flash;
467
+ float _e516 = c_3[3u];
468
+ metal::float3 _e517 = rgb;
469
+ metal::float3 _e521 = rgb;
470
+ rgb = _e521 + ((metal::float3(_e516) - _e517) * metal::clamp((_e508 + _e509) + (0.12 * _e511), 0.0, 1.0));
471
+ metal::float3 _e523 = rgb;
472
+ float _e525 = c_3[3u];
473
+ metal::float3 _e530 = metal::clamp(_e523 / metal::float3(_e525), metal::float3(0.0), metal::float3(1.0));
474
+ float _e532 = c_3[3u];
475
+ return metal::float4(_e530.x, _e530.y, _e530.z, _e532);
476
+ }
477
+
478
+ void main_1(
479
+ metal::texture2d<float, metal::access::sample> _from,
480
+ metal::sampler _sampler,
481
+ metal::texture2d<float, metal::access::sample> _to,
482
+ constant Uniforms& uniforms,
483
+ thread metal::float4& _fragColor,
484
+ thread metal::float2& _uv_1
485
+ ) {
486
+ metal::float2 param_28 = {};
487
+ metal::float2 _e73 = _uv_1;
488
+ param_28 = _e73;
489
+ metal::float4 _e74 = transition(param_28, _from, _sampler, _to, uniforms);
490
+ _fragColor = _e74;
491
+ return;
492
+ }
493
+
494
+ struct main_Input {
495
+ metal::float2 _uv [[user(loc0), center_perspective]];
496
+ };
497
+ struct main_Output {
498
+ metal::float4 member [[color(0)]];
499
+ };
500
+ fragment main_Output main_(
501
+ main_Input varyings [[stage_in]]
502
+ , metal::texture2d<float, metal::access::sample> _from [[texture(0)]]
503
+ , metal::sampler _sampler [[sampler(0)]]
504
+ , metal::texture2d<float, metal::access::sample> _to [[texture(1)]]
505
+ , constant Uniforms& uniforms [[buffer(0)]]
506
+ ) {
507
+ metal::float4 _fragColor = {};
508
+ metal::float2 _uv_1 = {};
509
+ const auto _uv = varyings._uv;
510
+ _uv_1 = _uv;
511
+ main_1(_from, _sampler, _to, uniforms, _fragColor, _uv_1);
512
+ metal::float4 _e3 = _fragColor;
513
+ return main_Output { _e3 };
514
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gl-transitions",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "The open collection of GL Transitions",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
@@ -1,33 +1,33 @@
1
- # Catalog (gl-transitions@2.3.0)
1
+ # Catalog (gl-transitions@2.4.0)
2
2
 
3
- 174 transitions. Generated from gl-transitions.json; full details (parameter hints, authors, source links) in https://cdn.jsdelivr.net/npm/gl-transitions@2.3.0/llms-full.txt.
3
+ 178 transitions. Generated from gl-transitions.json; full details (parameter hints, authors, source links) in https://cdn.jsdelivr.net/npm/gl-transitions@2.4.0/llms-full.txt.
4
4
 
5
5
  ## By tag
6
6
 
7
- - **wipe**: ApertureWipe, BowTie, BowTieHorizontal, BowTieVertical, BrushWipe, CircleOpen, ClockWipe, CurvedWipe, DiamondWipe, DirectionalWarp, DirectionalWipe, FlameWipe, FlowerWipe, HeartWipe, HorizontalClose, HorizontalOpen, LeafWipe, LightWipe, LumaWipe, PlusWipe, RadialWipe, SpiralWipe, SquaresWipe, StarWipe, StaticWipe, TilesWave, UndulatingBurnOut, VerticalClose, VerticalOpen, WedgeWipe, Wind, WindowSlices, WipeDown, WipeLeft, WipeRight, WipeUp, ZoomWipeLeft, ZoomWipeRight
7
+ - **wipe**: ApertureWipe, BowTie, BowTieHorizontal, BowTieVertical, BrushWipe, CircleOpen, ClockWipe, ColorPanelWipe, CurvedWipe, DiamondWipe, DirectionalWarp, DirectionalWipe, FlameWipe, FlowerWipe, HeartWipe, HorizontalClose, HorizontalOpen, LeafWipe, LightWipe, LumaWipe, PlusWipe, RadialWipe, SpiralWipe, SquaresWipe, StarWipe, StaticWipe, TilesWave, UndulatingBurnOut, VerticalClose, VerticalOpen, WedgeWipe, Wind, WindowSlices, WipeDown, WipeLeft, WipeRight, WipeUp, ZoomWipeLeft, ZoomWipeRight
8
8
  - **blend**: ColorCoords, ColorDistance, CrossZoom, DefocusBlur, DisplacementMap, Dreamy, Fade, FilmDissolve, Fisheye, GlitchBands, GlitchMemories, Hexagonalize, Kaleidoscope, LinearBlur, Morph, MosaicBlend, MosaicFade, MultiplyBlend, Pixelize, Ripple, RotateFade, SlideAwayRight, Swirl, WaterDrop, WindowBlinds
9
9
  - **zoom**: Box, CrossWarp, CrossZoom, DirectionalScaled, DreamyZoom, Fisheye, LeftRight, Mosaic, PopIn, RectangleIris, Revolve, RotateScaleFade, RotateScaleVanish, ScaleIn, SimpleZoom, SimpleZoomOut, StereoViewer, TopBottom, Tunnel, ZoomInCircles, ZoomInOut, ZoomWipeLeft, ZoomWipeRight
10
- - **slide**: Accordion, Bounce, CardSwipe, Comb, Directional, DirectionalEased, DirectionalScaled, Fold, LeftRight, SlideAwayRight, Slides, SplitSlideInHorizontal, SplitSlideInOutHorizontal, SplitSlideInOutVertical, SplitSlideInVertical, SplitSlideOutHorizontal, SplitSlideOutVertical, StretchSlide, TangentMotionBlur, TopBottom, WhipPan
10
+ - **slide**: Accordion, Bounce, CardSwipe, Comb, Directional, DirectionalEased, DirectionalScaled, Fold, Gallery, LeftRight, SlideAwayRight, Slides, SplitSlideInHorizontal, SplitSlideInOutHorizontal, SplitSlideInOutVertical, SplitSlideInVertical, SplitSlideOutHorizontal, SplitSlideOutVertical, StretchSlide, TangentMotionBlur, TopBottom, WhipPan
11
11
  - **rotate**: ApertureWipe, CardSwipe, Cube, DreamyZoom, FallOver, Honeycomb, Pinwheel, Prisms, Puzzle, Revolve, Rolls, RotateFade, RotateScaleFade, RotateScaleVanish, Swirl, TangentMotionBlur, WhipSpin, WhipTilt
12
12
  - **horizontal**: BowTieHorizontal, Comb, CrossWarp, Curtains, Fold, LeftRight, PaperTear, SimpleFlip, SlideAwayRight, SplitSlideInHorizontal, SplitSlideInOutHorizontal, SplitSlideOutHorizontal, Wind, WipeLeft, WipeRight, ZoomWipeLeft, ZoomWipeRight
13
13
  - **vertical**: Bounce, BowTieVertical, CylinderRoll, FallOver, FilmStrip, Shred, SplitSlideInOutVertical, SplitSlideInVertical, SplitSlideOutVertical, Squeeze, StaticWipe, TopBottom, TvRoll, TvTurnOff, WhipTilt, WipeDown, WipeUp
14
14
  - **fade**: ColorPhase, ColorWrap, EdgeGlow, Fade, FadeColor, FadeGrayscale, FilmDissolve, FlashFade, HsvFade, MultiplyBlend, Overexposure, PhotoDevelop, RotateScaleFade, ScaleIn, SimpleZoom, SimpleZoomOut
15
- - **directional**: CardSwipe, CurvedWipe, Directional, DirectionalEased, DirectionalScaled, DirectionalWarp, DirectionalWipe, Disintegrate, FlameWipe, PixelStretch, Slides, SquaresWipe, StretchSlide, WhipPan
16
- - **shape**: ApertureWipe, BowTie, BowTieHorizontal, BowTieVertical, Box, CircleIris, DiamondWipe, FlowerWipe, HeartWipe, LeafWipe, PlusWipe, RectangleCover, SpiralWipe, StarWipe
17
- - **retro**: Ascii, DitherDissolve, DoomMelt, FilmStrip, Halftone, LissajousTiles, PhotoDevelop, StaticFade, StereoViewer, TvLostSignal, TvRoll, TvStatic, TvTurnOff
18
- - **3d**: Accordion, BookFlip, Cube, Curtains, CylinderRoll, Doorway, FallOver, InvertedPageCurl, Prisms, Swap, Tunnel, WhipTilt
19
- - **noise**: BlockDissolve, BurnThrough, Crosshatch, InkBleed, LuminanceMelt, NoiseDissolve, PerlinDissolve, SmokeDissolve, StaticFade, StaticWipe, TvStatic, Wind
15
+ - **directional**: CardSwipe, CurvedWipe, Directional, DirectionalEased, DirectionalScaled, DirectionalWarp, DirectionalWipe, Disintegrate, FlameWipe, Gallery, PixelStretch, Slides, SquaresWipe, StretchSlide, WhipPan
16
+ - **shape**: ApertureWipe, BowTie, BowTieHorizontal, BowTieVertical, Box, CircleIris, DiamondWipe, EyeBlink, FlowerWipe, HeartWipe, LeafWipe, PlusWipe, RectangleCover, SpiralWipe, StarWipe
17
+ - **retro**: Ascii, DitherDissolve, DoomMelt, FilmStrip, Halftone, LissajousTiles, PhotoDevelop, StaticFade, StereoViewer, TvLostSignal, TvRoll, TvStatic, TvTurnOff, VhsTracking
18
+ - **3d**: Accordion, BookFlip, Cube, Curtains, CylinderRoll, Doorway, FallOver, Gallery, InvertedPageCurl, Prisms, Swap, Tunnel, WhipTilt
19
+ - **noise**: BlockDissolve, BurnThrough, Crosshatch, InkBleed, LuminanceMelt, NoiseDissolve, PerlinDissolve, SmokeDissolve, StaticFade, StaticWipe, TvStatic, VhsTracking, Wind
20
20
  - **split**: Curtains, HorizontalClose, HorizontalOpen, PaperTear, SplitSlideInHorizontal, SplitSlideInOutHorizontal, SplitSlideInOutVertical, SplitSlideInVertical, SplitSlideOutHorizontal, SplitSlideOutVertical, VerticalClose, VerticalOpen
21
+ - **color**: BlockCover, ColorDistance, ColorPanelWipe, ColorPhase, ColorWrap, FadeColor, FadeGrayscale, FlashFade, HsvFade, PhotoDevelop
21
22
  - **chromatic**: ButterflyWaveScrawler, CameraShake, CylinderRoll, FlyEye, GlitchFlicker, GlitchMemories, PixelStretch, Squeeze, StripDatamoshGlitch
22
- - **color**: BlockCover, ColorDistance, ColorPhase, ColorWrap, FadeColor, FadeGrayscale, FlashFade, HsvFade, PhotoDevelop
23
23
  - **dissolve**: BlockDissolve, BloomDissolve, BokehDissolve, DitherDissolve, FilmDissolve, GlowDissolve, NoiseDissolve, PerlinDissolve, RandomSquares
24
24
  - **distort**: ButterflyWaveScrawler, ColorCoords, CrazyParametricFun, DisplacementMap, Fisheye, FlyEye, Kaleidoscope, Morph, PowerKaleido
25
+ - **glitch**: ColorWrap, GlitchBands, GlitchDisplace, GlitchFlicker, GlitchMemories, StripDatamoshGlitch, TvLostSignal, VhsTracking
25
26
  - **light**: BloomDissolve, BokehDissolve, FilmDissolve, LensFlare, LightRays, LightStreaks, LightWipe, Overexposure
26
27
  - **motion-blur**: CameraShake, CylinderRoll, FilmStrip, LightStreaks, TangentMotionBlur, WhipPan, WhipSpin, WhipTilt
27
28
  - **radial**: ClockWipe, Honeycomb, LightRays, Pinwheel, RadialWipe, SpiralWipe, Tunnel, WedgeWipe
28
- - **glitch**: ColorWrap, GlitchBands, GlitchDisplace, GlitchFlicker, GlitchMemories, StripDatamoshGlitch, TvLostSignal
29
+ - **blur**: BokehDissolve, CrossZoom, DefocusBlur, EyeBlink, LinearBlur, Revolve, ZoomInOut
29
30
  - **glow**: BloomDissolve, GlowDissolve, LensFlare, LightRays, LightStreaks, LightWipe, Refraction
30
- - **blur**: BokehDissolve, CrossZoom, DefocusBlur, LinearBlur, Revolve, ZoomInOut
31
31
  - **grid**: BlockCover, Chessboard, GridFlip, LissajousTiles, RandomSquares, SquaresWipe
32
32
  - **iris**: ApertureWipe, CircleIris, CircleOpen, DiamondWipe, RectangleCover, RectangleIris
33
33
  - **pattern**: Ascii, Chessboard, Crosshatch, DitherDissolve, Halftone, PolkaDotsCurtain
@@ -40,6 +40,8 @@
40
40
  - **circle**: CircleIris, CircleOpen, UndulatingBurnOut, ZoomInCircles
41
41
  - **flash**: DreamyZoom, FlashFade, Overexposure, TvTurnOff
42
42
  - **push**: Comb, Directional, DirectionalEased, DirectionalScaled
43
+ - **reflection**: Cube, Doorway, Gallery, Swap
44
+ - **scanlines**: GlitchFlicker, TvLostSignal, TvRoll, VhsTracking
43
45
  - **squares**: BlockCover, Chessboard, RandomSquares, SquaresWipe
44
46
  - **wave**: ButterflyWaveScrawler, Dreamy, Ripple, TilesWave
45
47
  - **bounce**: Bounce, PopIn, StretchSlide
@@ -50,8 +52,6 @@
50
52
  - **fold**: Accordion, Curtains, Fold
51
53
  - **lens**: BokehDissolve, Fisheye, FlyEye
52
54
  - **mosaic**: Mosaic, MosaicBlend, MosaicFade
53
- - **reflection**: Cube, Doorway, Swap
54
- - **scanlines**: GlitchFlicker, TvLostSignal, TvRoll
55
55
  - **spin**: RotateFade, RotateScaleVanish, WhipSpin
56
56
  - **static**: StaticFade, StaticWipe, TvStatic
57
57
  - **warp**: CrossWarp, DirectionalWarp, Tunnel
@@ -76,6 +76,7 @@
76
76
  - **slices**: Shred, WindowSlices
77
77
  - **swirl**: Revolve, Swirl
78
78
  - **blinds**: WindowBlinds
79
+ - **blink**: EyeBlink
79
80
  - **blob**: GooeyWipe
80
81
  - **bloom**: BloomDissolve
81
82
  - **bokeh**: BokehDissolve
@@ -95,10 +96,12 @@
95
96
  - **doors**: Doorway
96
97
  - **dust**: Disintegrate
97
98
  - **edges**: EdgeGlow
99
+ - **eye**: EyeBlink
98
100
  - **flame**: FlameWipe
99
101
  - **flicker**: GlitchFlicker
100
102
  - **fluid**: InkBleed
101
103
  - **fog**: SmokeDissolve
104
+ - **gallery**: Gallery
102
105
  - **glint**: LightWipe
103
106
  - **grayscale**: FadeGrayscale
104
107
  - **heart**: HeartWipe
@@ -111,7 +114,10 @@
111
114
  - **mask**: LumaWipe
112
115
  - **morph**: Morph
113
116
  - **motion**: LissajousTiles
117
+ - **motion-graphics**: ColorPanelWipe
118
+ - **panels**: ColorPanelWipe
114
119
  - **particles**: Disintegrate
120
+ - **perspective**: Gallery
115
121
  - **photo**: PhotoDevelop
116
122
  - **pinwheel**: Pinwheel
117
123
  - **plus**: PlusWipe
@@ -122,6 +128,7 @@
122
128
  - **scale**: PopIn
123
129
  - **shake**: CameraShake
124
130
  - **shatter**: Shatter
131
+ - **slanted**: ColorPanelWipe
125
132
  - **smear**: PixelStretch
126
133
  - **smoke**: SmokeDissolve
127
134
  - **splash**: SplatterWipe
@@ -134,6 +141,7 @@
134
141
  - **stretch**: StretchSlide
135
142
  - **swap**: Swap
136
143
  - **swipe**: CardSwipe
144
+ - **tape**: VhsTracking
137
145
  - **text**: Ascii
138
146
  - **water**: WaterDrop
139
147
  - **wedge**: WedgeWipe
@@ -167,6 +175,7 @@
167
175
  - `ClockWipe`: A wipe that sweeps around the center from a starting angle. Params: startingAngle (float = 90)
168
176
  - `ColorCoords`: A crossfade in which the colors of one image displace the other
169
177
  - `ColorDistance`: Pixels switch to the incoming image in order of how close their colors are. Params: power (float = 5)
178
+ - `ColorPanelWipe`: Solid color panels, slightly staggered, sweep across and cover the frame, then sweep off the far side and reveal the incoming image. Params: direction (vec2 = vec2(1, 0)), panels (int = 3), color1 (vec4 = vec4(0.98, 0.76, 0.22, 1)), color2 (vec4 = vec4(0.93, 0.33, 0.36, 1)), color3 (vec4 = vec4(0.16, 0.2, 0.42, 1)), stagger (float = 0.35), skew (float = 0.25)
170
179
  - `ColorPhase`: A crossfade in which each color channel changes at a different time. Params: fromStep (vec4 = vec4(0, 0.2, 0.4, 0)), toStep (vec4 = vec4(0.6, 0.8, 1, 1))
171
180
  - `ColorWrap`: Each color channel of the outgoing image is shifted and wraps around into psychedelic bands, while crossfading to the incoming image. Params: r_strength (float = 1), g_strength (float = 1), b_strength (float = 1)
172
181
  - `Comb`: The frame is cut into interleaved strips that slide in opposite directions, each pushing the outgoing image out and the incoming one in. Params: strips (int = 10), vertical (bool = false)
@@ -193,6 +202,7 @@
193
202
  - `Dreamy`: A crossfade with a gentle wavy distortion
194
203
  - `DreamyZoom`: Zooms and rotates into a bright flash, then out to the incoming image. Params: rotation (float = 6), scale (float = 1.2)
195
204
  - `EdgeGlow`: Both images fade through black with their edges glowing. Params: edge_thickness (float = 0.001), edge_brightness (float = 8)
205
+ - `EyeBlink`: Curved eyelids close from the top and bottom over the outgoing image, which blurs and dims, then open on the incoming image as it comes back into focus, as if the viewer blinked. Params: blur (float = 0.5), softness (float = 0.12), blinks (int = 1), color (vec4 = vec4(0.03, 0.02, 0.02, 1))
196
206
  - `Fade`: A linear crossfade between the two images
197
207
  - `FadeColor`: A fade through a solid color, black by default. Params: color (vec4 = vec4(0, 0, 0, 1)), colorPhase (float = 0.4)
198
208
  - `FadeGrayscale`: A crossfade through grayscale. Params: intensity (float = 0.3)
@@ -206,6 +216,7 @@
206
216
  - `FlowerWipe`: A flower shape with several petals grows to reveal the incoming image. Params: segments (int = 5)
207
217
  - `FlyEye`: The image breaks into a fly's-eye grid of lenses with color separation. Params: size (float = 0.04), zoom (float = 50), colorSeparation (float = 0.3)
208
218
  - `Fold`: The incoming image unfolds from the left while the outgoing one folds away to the right
219
+ - `Gallery`: The camera pulls back from the outgoing image to show it as a slide hanging in a row on a wall in perspective, the row glides along as each slide turns away from the center, and the camera moves back in on the incoming slide until it fills the frame. Params: direction (float = 1), tilt (float = 0.6), gap (float = 0.15), zoom (float = 2), reflection (float = 0.3), background (vec4 = vec4(0.07, 0.07, 0.08, 1))
209
220
  - `GlitchBands`: A crossfade with glitchy horizontal bands and color shifts. Params: ampx (float = 1), ampy (float = 1)
210
221
  - `GlitchDisplace`: Blocks of the image are displaced in a glitch that flashes into the incoming image
211
222
  - `GlitchFlicker`: A flickering glitch with RGB offset, ghosting and scanlines that flashes back to the outgoing image. Params: frameRate (float = 24), rgbOffset (float = 0.014), blockAmount (float = 0.72), ghostAmount (float = 0.62), redCyan (float = 0.58), scanline (float = 0.075)
@@ -301,6 +312,7 @@
301
312
  - `UndulatingBurnOut`: A circle with a wavy edge burns out from the center to reveal the incoming image. Params: smoothness (float = 0.03), center (vec2 = vec2(0.5, 0.5)), color (vec4 = vec4(0, 0, 0, 1))
302
313
  - `VerticalClose`: The incoming image closes in from the left and right edges toward the middle
303
314
  - `VerticalOpen`: The incoming image opens from a line in the middle toward the left and right edges
315
+ - `VhsTracking`: Tape-tracking bands of white snow roll down the frame, tearing the lines around them, with smeared color, wobbling lines, a jittering strip at the bottom and a dropout flash, as the incoming image is recorded over the outgoing one under the densest band. Params: bands (int = 3), noise (float = 0.6), bleed (float = 0.5), wobble (float = 0.5)
304
316
  - `WaterDrop`: Ripples spread from the center like a drop falling into water, crossfading to the incoming image. Params: amplitude (float = 30), speed (float = 30)
305
317
  - `WedgeWipe`: Two hands sweep away from each other around the center, opening a widening wedge that reveals the incoming image. Params: angle (float = 0), smoothness (float = 0.01), center (vec2 = vec2(0.5, 0.5))
306
318
  - `WhipPan`: A fast camera pan that streaks both images with motion blur, the incoming one arriving from the opposite side. Params: direction (vec2 = vec2(-1, 0)), blur (float = 0.4)