gl-transitions 2.5.0 → 3.0.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.
Files changed (107) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +16 -1
  3. package/compatibility.json +56 -170
  4. package/gl-transitions.js +1 -1
  5. package/gl-transitions.json +1 -1
  6. package/glsl3/BandWipe.glsl +67 -0
  7. package/glsl3/BowTie.glsl +1 -1
  8. package/glsl3/DirectionalWipe.glsl +1 -1
  9. package/glsl3/GlintDissolve.glsl +125 -0
  10. package/glsl3/InsetWipe.glsl +58 -0
  11. package/glsl3/LightningFlash.glsl +200 -0
  12. package/glsl3/WarpSpeed.glsl +120 -0
  13. package/index.js +1 -1
  14. package/layouts.json +191 -198
  15. package/llms-full.txt +452 -515
  16. package/llms.txt +197 -204
  17. package/msl/BandWipe.metal +353 -0
  18. package/msl/BowTie.metal +1 -1
  19. package/msl/DirectionalWipe.metal +1 -1
  20. package/msl/GlintDissolve.metal +558 -0
  21. package/msl/InsetWipe.metal +232 -0
  22. package/msl/LightningFlash.metal +1038 -0
  23. package/msl/WarpSpeed.metal +549 -0
  24. package/package.json +1 -1
  25. package/skills/gl-transitions/references/catalog.md +36 -37
  26. package/sksl/BandWipe.sksl +77 -0
  27. package/sksl/BowTie.sksl +1 -1
  28. package/sksl/DirectionalWipe.sksl +1 -1
  29. package/sksl/GlintDissolve.sksl +136 -0
  30. package/sksl/InsetWipe.sksl +70 -0
  31. package/sksl/LightningFlash.sksl +202 -0
  32. package/sksl/WarpSpeed.sksl +131 -0
  33. package/sksl/index.js +1 -1
  34. package/transitions/BandWipe.glsl +66 -0
  35. package/transitions/BowTie.glsl +1 -1
  36. package/transitions/DirectionalWipe.glsl +1 -1
  37. package/transitions/GlintDissolve.glsl +124 -0
  38. package/transitions/InsetWipe.glsl +57 -0
  39. package/transitions/LightningFlash.glsl +199 -0
  40. package/transitions/WarpSpeed.glsl +119 -0
  41. package/wgsl/BandWipe.wgsl +319 -0
  42. package/wgsl/BowTie.wgsl +1 -1
  43. package/wgsl/DirectionalWipe.wgsl +1 -1
  44. package/wgsl/GlintDissolve.wgsl +519 -0
  45. package/wgsl/InsetWipe.wgsl +200 -0
  46. package/wgsl/LightningFlash.wgsl +964 -0
  47. package/wgsl/WarpSpeed.wgsl +497 -0
  48. package/glsl3/BlockDissolve.glsl +0 -16
  49. package/glsl3/BowTieVertical.glsl +0 -117
  50. package/glsl3/Box.glsl +0 -33
  51. package/glsl3/LinearBlur.glsl +0 -30
  52. package/glsl3/MosaicBlend.glsl +0 -21
  53. package/glsl3/MosaicFade.glsl +0 -20
  54. package/glsl3/RotateFade.glsl +0 -22
  55. package/glsl3/ScaleIn.glsl +0 -18
  56. package/glsl3/WipeDown.glsl +0 -12
  57. package/glsl3/WipeLeft.glsl +0 -12
  58. package/glsl3/WipeRight.glsl +0 -12
  59. package/glsl3/WipeUp.glsl +0 -12
  60. package/msl/BlockDissolve.metal +0 -108
  61. package/msl/BowTieVertical.metal +0 -375
  62. package/msl/Box.metal +0 -204
  63. package/msl/LinearBlur.metal +0 -169
  64. package/msl/MosaicBlend.metal +0 -136
  65. package/msl/MosaicFade.metal +0 -137
  66. package/msl/RotateFade.metal +0 -116
  67. package/msl/ScaleIn.metal +0 -111
  68. package/msl/WipeDown.metal +0 -105
  69. package/msl/WipeLeft.metal +0 -105
  70. package/msl/WipeRight.metal +0 -105
  71. package/msl/WipeUp.metal +0 -105
  72. package/sksl/BlockDissolve.sksl +0 -29
  73. package/sksl/BowTieVertical.sksl +0 -130
  74. package/sksl/Box.sksl +0 -47
  75. package/sksl/LinearBlur.sksl +0 -44
  76. package/sksl/MosaicBlend.sksl +0 -34
  77. package/sksl/MosaicFade.sksl +0 -33
  78. package/sksl/RotateFade.sksl +0 -34
  79. package/sksl/ScaleIn.sksl +0 -32
  80. package/sksl/WipeDown.sksl +0 -26
  81. package/sksl/WipeLeft.sksl +0 -26
  82. package/sksl/WipeRight.sksl +0 -26
  83. package/sksl/WipeUp.sksl +0 -26
  84. package/transitions/BlockDissolve.glsl +0 -15
  85. package/transitions/BowTieVertical.glsl +0 -116
  86. package/transitions/Box.glsl +0 -32
  87. package/transitions/LinearBlur.glsl +0 -29
  88. package/transitions/MosaicBlend.glsl +0 -20
  89. package/transitions/MosaicFade.glsl +0 -19
  90. package/transitions/RotateFade.glsl +0 -21
  91. package/transitions/ScaleIn.glsl +0 -17
  92. package/transitions/WipeDown.glsl +0 -11
  93. package/transitions/WipeLeft.glsl +0 -11
  94. package/transitions/WipeRight.glsl +0 -11
  95. package/transitions/WipeUp.glsl +0 -11
  96. package/wgsl/BlockDissolve.wgsl +0 -78
  97. package/wgsl/BowTieVertical.wgsl +0 -331
  98. package/wgsl/Box.wgsl +0 -176
  99. package/wgsl/LinearBlur.wgsl +0 -131
  100. package/wgsl/MosaicBlend.wgsl +0 -108
  101. package/wgsl/MosaicFade.wgsl +0 -107
  102. package/wgsl/RotateFade.wgsl +0 -85
  103. package/wgsl/ScaleIn.wgsl +0 -79
  104. package/wgsl/WipeDown.wgsl +0 -77
  105. package/wgsl/WipeLeft.wgsl +0 -77
  106. package/wgsl/WipeRight.wgsl +0 -77
  107. package/wgsl/WipeUp.wgsl +0 -77
package/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # gl-transitions
2
2
 
3
+ ## 3.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#419](https://github.com/gl-transitions/gl-transitions/pull/419) [`ca6ced2`](https://github.com/gl-transitions/gl-transitions/commit/ca6ced29250520362b0646abc38ad8b91354e169) Thanks [@gre](https://github.com/gre)! - Twelve transitions that duplicated another one are removed. Each renders the same as, or very close to, the transition that replaces it with the given parameters:
8
+
9
+ - `WipeLeft`, `WipeRight`, `WipeUp`, `WipeDown`: `DirectionalWipe` with `smoothness: 0` and `direction` `[-1, 0]`, `[1, 0]`, `[0, 1]` or `[0, -1]` (identical)
10
+ - `BowTieVertical`: `BowTie` with its defaults
11
+ - `Box`: `InsetWipe`, with `anchor` on the box's corner or at the center, and the new `reverse: true` for `rectIn: 1`
12
+ - `LinearBlur`: `DefocusBlur`
13
+ - `MosaicBlend`, `MosaicFade`: `Pixelize`
14
+ - `ScaleIn`: `SimpleZoomOut` with `zoom_quickness: 1`
15
+ - `RotateFade`: `RotateScaleFade` with `scale: 1`
16
+ - `BlockDissolve`: `RandomSquares` with `smoothness: 0`
17
+
18
+ `InsetWipe` gets a `reverse` parameter: the outgoing image shrinks into the rectangle, toward the anchor.
19
+
20
+ ### Minor Changes
21
+
22
+ - [#416](https://github.com/gl-transitions/gl-transitions/pull/416) [`467b771`](https://github.com/gl-transitions/gl-transitions/commit/467b7718834d7bbd985b4c44ad49b00fc31aad52) Thanks [@gre](https://github.com/gre)! - New transition: `BandWipe` by gre.
23
+
24
+ - [#421](https://github.com/gl-transitions/gl-transitions/pull/421) [`3f21354`](https://github.com/gl-transitions/gl-transitions/commit/3f21354946f28fe467ed5f90a5aa8912cc1fa86b) Thanks [@gre](https://github.com/gre)! - New transition: `GlintDissolve` by gre.
25
+
26
+ - [#415](https://github.com/gl-transitions/gl-transitions/pull/415) [`1b4adac`](https://github.com/gl-transitions/gl-transitions/commit/1b4adacc046ce6e79922bc064a2e1ace87897d4e) Thanks [@gre](https://github.com/gre)! - New transition: `InsetWipe` by gre.
27
+
28
+ - [#420](https://github.com/gl-transitions/gl-transitions/pull/420) [`30f5616`](https://github.com/gl-transitions/gl-transitions/commit/30f56163e6f7ad83a4b5c41144995154b17079eb) Thanks [@gre](https://github.com/gre)! - New transition: `LightningFlash` by gre.
29
+
30
+ - [#417](https://github.com/gl-transitions/gl-transitions/pull/417) [`e5cdcb0`](https://github.com/gl-transitions/gl-transitions/commit/e5cdcb0bf5bf90f151b24bb13707a49e8d65d7b6) Thanks [@gre](https://github.com/gre)! - New transition: `WarpSpeed` by gre.
31
+
32
+ - [#419](https://github.com/gl-transitions/gl-transitions/pull/419) [`ca6ced2`](https://github.com/gl-transitions/gl-transitions/commit/ca6ced29250520362b0646abc38ad8b91354e169) Thanks [@gre](https://github.com/gre)! - Removed 12 transitions.
33
+
34
+ - [#419](https://github.com/gl-transitions/gl-transitions/pull/419) [`ca6ced2`](https://github.com/gl-transitions/gl-transitions/commit/ca6ced29250520362b0646abc38ad8b91354e169) Thanks [@gre](https://github.com/gre)! - Updated `BowTie`, `DirectionalWipe`.
35
+
3
36
  ## 2.5.0
4
37
 
5
38
  ### Minor Changes
package/README.md CHANGED
@@ -33,9 +33,24 @@ A Transition is an object with the following shape (TypeScript types are include
33
33
  }
34
34
  ```
35
35
 
36
+ ## Migrating from 2.x
37
+
38
+ 3.0 removes twelve transitions that duplicated another one. Use the replacement with these parameters, which renders the same or very close:
39
+
40
+ | Removed | Replacement |
41
+ |---|---|
42
+ | `WipeLeft`, `WipeRight`, `WipeUp`, `WipeDown` | `DirectionalWipe`, `smoothness: 0`, `direction` `[-1, 0]`, `[1, 0]`, `[0, 1]` or `[0, -1]` |
43
+ | `BowTieVertical` | `BowTie` |
44
+ | `Box` | `InsetWipe`, `anchor` on the box's corner or at the center, `reverse: true` for `rectIn: 1` |
45
+ | `LinearBlur` | `DefocusBlur` |
46
+ | `MosaicBlend`, `MosaicFade` | `Pixelize` |
47
+ | `ScaleIn` | `SimpleZoomOut`, `zoom_quickness: 1` |
48
+ | `RotateFade` | `RotateScaleFade`, `scale: 1` |
49
+ | `BlockDissolve` | `RandomSquares`, `smoothness: 0` |
50
+
36
51
  ## Migrating from 1.x
37
52
 
38
- 2.0 gives every transition a PascalCase name: `crosswarp` is now `CrossWarp`, `wipeLeft` is `WipeLeft`. Names that were misleading or unclear got a better one at the same time (`burn` is now `FlashFade`, `fragment` is `Shatter`), and two near-duplicates were removed: `CircleCrop` (use `CircleIris`) and `PuzzleRight` (use `GridFlip`). The renamed transitions render as before, with the same parameters, except three fill colors that became a `vec4` in 2.0, so they can be transparent: `CircleIris`'s `backColor`, `FadeColor`'s `color` and `UndulatingBurnOut`'s `color` (add an alpha of 1 to your values). The two replacements look alike but differ: `CircleIris` closes into an ellipse that follows the image's shape, over a dark gray `backColor` instead of black `bgcolor`; `GridFlip` has thicker dividers, a `bgcolor` and a random order (`randomness`).
53
+ 2.0 gives every transition a PascalCase name: `crosswarp` is now `CrossWarp`, `lissajousTiles` is `LissajousTiles`. Names that were misleading or unclear got a better one at the same time (`burn` is now `FlashFade`, `fragment` is `Shatter`), and two near-duplicates were removed: `CircleCrop` (use `CircleIris`) and `PuzzleRight` (use `GridFlip`). The renamed transitions render as before, with the same parameters, except three fill colors that became a `vec4` in 2.0, so they can be transparent: `CircleIris`'s `backColor`, `FadeColor`'s `color` and `UndulatingBurnOut`'s `color` (add an alpha of 1 to your values). The two replacements look alike but differ: `CircleIris` closes into an ellipse that follows the image's shape, over a dark gray `backColor` instead of black `bgcolor`; `GridFlip` has thicker dividers, a `bgcolor` and a random order (`randomness`).
39
54
 
40
55
  The [changelog](CHANGELOG.md) of 2.0 lists every renamed transition.
41
56
 
@@ -86,35 +86,33 @@
86
86
  "status": "translated"
87
87
  }
88
88
  },
89
- "BlockCover": {
89
+ "BandWipe": {
90
90
  "sksl": {
91
91
  "status": "match",
92
- "differingPixels": 0.001
92
+ "differingPixels": 0
93
93
  },
94
94
  "glsl3": {
95
95
  "status": "compiled"
96
96
  },
97
97
  "wgsl": {
98
98
  "status": "match",
99
- "differingPixels": 0.001
99
+ "differingPixels": 0
100
100
  },
101
101
  "msl": {
102
102
  "status": "translated"
103
103
  }
104
104
  },
105
- "BlockDissolve": {
105
+ "BlockCover": {
106
106
  "sksl": {
107
- "status": "differs",
108
- "differingPixels": 0.495,
109
- "hashNoise": true
107
+ "status": "match",
108
+ "differingPixels": 0.001
110
109
  },
111
110
  "glsl3": {
112
111
  "status": "compiled"
113
112
  },
114
113
  "wgsl": {
115
114
  "status": "match",
116
- "differingPixels": 0,
117
- "hashNoise": true
115
+ "differingPixels": 0.001
118
116
  },
119
117
  "msl": {
120
118
  "status": "translated"
@@ -232,38 +230,6 @@
232
230
  "status": "translated"
233
231
  }
234
232
  },
235
- "BowTieVertical": {
236
- "sksl": {
237
- "status": "match",
238
- "differingPixels": 0
239
- },
240
- "glsl3": {
241
- "status": "compiled"
242
- },
243
- "wgsl": {
244
- "status": "match",
245
- "differingPixels": 0
246
- },
247
- "msl": {
248
- "status": "translated"
249
- }
250
- },
251
- "Box": {
252
- "sksl": {
253
- "status": "match",
254
- "differingPixels": 0
255
- },
256
- "glsl3": {
257
- "status": "compiled"
258
- },
259
- "wgsl": {
260
- "status": "match",
261
- "differingPixels": 0
262
- },
263
- "msl": {
264
- "status": "translated"
265
- }
266
- },
267
233
  "BrushWipe": {
268
234
  "sksl": {
269
235
  "status": "match",
@@ -1154,6 +1120,22 @@
1154
1120
  "status": "translated"
1155
1121
  }
1156
1122
  },
1123
+ "GlintDissolve": {
1124
+ "sksl": {
1125
+ "status": "match",
1126
+ "differingPixels": 0
1127
+ },
1128
+ "glsl3": {
1129
+ "status": "compiled"
1130
+ },
1131
+ "wgsl": {
1132
+ "status": "match",
1133
+ "differingPixels": 0
1134
+ },
1135
+ "msl": {
1136
+ "status": "translated"
1137
+ }
1138
+ },
1157
1139
  "GlitchBands": {
1158
1140
  "sksl": {
1159
1141
  "status": "match",
@@ -1432,6 +1414,22 @@
1432
1414
  "status": "translated"
1433
1415
  }
1434
1416
  },
1417
+ "InsetWipe": {
1418
+ "sksl": {
1419
+ "status": "match",
1420
+ "differingPixels": 0
1421
+ },
1422
+ "glsl3": {
1423
+ "status": "compiled"
1424
+ },
1425
+ "wgsl": {
1426
+ "status": "match",
1427
+ "differingPixels": 0
1428
+ },
1429
+ "msl": {
1430
+ "status": "translated"
1431
+ }
1432
+ },
1435
1433
  "InvertedPageCurl": {
1436
1434
  "sksl": {
1437
1435
  "status": "match",
@@ -1560,7 +1558,7 @@
1560
1558
  "status": "translated"
1561
1559
  }
1562
1560
  },
1563
- "LinearBlur": {
1561
+ "LightningFlash": {
1564
1562
  "sksl": {
1565
1563
  "status": "match",
1566
1564
  "differingPixels": 0
@@ -1676,38 +1674,6 @@
1676
1674
  "status": "translated"
1677
1675
  }
1678
1676
  },
1679
- "MosaicBlend": {
1680
- "sksl": {
1681
- "status": "match",
1682
- "differingPixels": 0.009
1683
- },
1684
- "glsl3": {
1685
- "status": "compiled"
1686
- },
1687
- "wgsl": {
1688
- "status": "close",
1689
- "differingPixels": 0.029
1690
- },
1691
- "msl": {
1692
- "status": "translated"
1693
- }
1694
- },
1695
- "MosaicFade": {
1696
- "sksl": {
1697
- "status": "match",
1698
- "differingPixels": 0
1699
- },
1700
- "glsl3": {
1701
- "status": "compiled"
1702
- },
1703
- "wgsl": {
1704
- "status": "match",
1705
- "differingPixels": 0
1706
- },
1707
- "msl": {
1708
- "status": "translated"
1709
- }
1710
- },
1711
1677
  "MultiplyBlend": {
1712
1678
  "sksl": {
1713
1679
  "status": "match",
@@ -2114,22 +2080,6 @@
2114
2080
  "status": "translated"
2115
2081
  }
2116
2082
  },
2117
- "RotateFade": {
2118
- "sksl": {
2119
- "status": "match",
2120
- "differingPixels": 0
2121
- },
2122
- "glsl3": {
2123
- "status": "compiled"
2124
- },
2125
- "wgsl": {
2126
- "status": "match",
2127
- "differingPixels": 0
2128
- },
2129
- "msl": {
2130
- "status": "translated"
2131
- }
2132
- },
2133
2083
  "RotateScaleFade": {
2134
2084
  "sksl": {
2135
2085
  "status": "match",
@@ -2178,22 +2128,6 @@
2178
2128
  "status": "translated"
2179
2129
  }
2180
2130
  },
2181
- "ScaleIn": {
2182
- "sksl": {
2183
- "status": "match",
2184
- "differingPixels": 0
2185
- },
2186
- "glsl3": {
2187
- "status": "compiled"
2188
- },
2189
- "wgsl": {
2190
- "status": "match",
2191
- "differingPixels": 0
2192
- },
2193
- "msl": {
2194
- "status": "translated"
2195
- }
2196
- },
2197
2131
  "Shatter": {
2198
2132
  "sksl": {
2199
2133
  "status": "differs",
@@ -2898,6 +2832,22 @@
2898
2832
  "status": "translated"
2899
2833
  }
2900
2834
  },
2835
+ "WarpSpeed": {
2836
+ "sksl": {
2837
+ "status": "match",
2838
+ "differingPixels": 0.003
2839
+ },
2840
+ "glsl3": {
2841
+ "status": "compiled"
2842
+ },
2843
+ "wgsl": {
2844
+ "status": "match",
2845
+ "differingPixels": 0.003
2846
+ },
2847
+ "msl": {
2848
+ "status": "translated"
2849
+ }
2850
+ },
2901
2851
  "WaterDrop": {
2902
2852
  "sksl": {
2903
2853
  "status": "match",
@@ -3030,70 +2980,6 @@
3030
2980
  "status": "translated"
3031
2981
  }
3032
2982
  },
3033
- "WipeDown": {
3034
- "sksl": {
3035
- "status": "match",
3036
- "differingPixels": 0
3037
- },
3038
- "glsl3": {
3039
- "status": "compiled"
3040
- },
3041
- "wgsl": {
3042
- "status": "match",
3043
- "differingPixels": 0
3044
- },
3045
- "msl": {
3046
- "status": "translated"
3047
- }
3048
- },
3049
- "WipeLeft": {
3050
- "sksl": {
3051
- "status": "match",
3052
- "differingPixels": 0
3053
- },
3054
- "glsl3": {
3055
- "status": "compiled"
3056
- },
3057
- "wgsl": {
3058
- "status": "match",
3059
- "differingPixels": 0
3060
- },
3061
- "msl": {
3062
- "status": "translated"
3063
- }
3064
- },
3065
- "WipeRight": {
3066
- "sksl": {
3067
- "status": "match",
3068
- "differingPixels": 0
3069
- },
3070
- "glsl3": {
3071
- "status": "compiled"
3072
- },
3073
- "wgsl": {
3074
- "status": "match",
3075
- "differingPixels": 0
3076
- },
3077
- "msl": {
3078
- "status": "translated"
3079
- }
3080
- },
3081
- "WipeUp": {
3082
- "sksl": {
3083
- "status": "match",
3084
- "differingPixels": 0
3085
- },
3086
- "glsl3": {
3087
- "status": "compiled"
3088
- },
3089
- "wgsl": {
3090
- "status": "match",
3091
- "differingPixels": 0
3092
- },
3093
- "msl": {
3094
- "status": "translated"
3095
- }
3096
- },
3097
2983
  "ZoomInCircles": {
3098
2984
  "sksl": {
3099
2985
  "status": "match",