gl-transitions 2.4.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 (182) hide show
  1. package/CHANGELOG.md +67 -0
  2. package/README.md +16 -1
  3. package/compatibility.json +251 -121
  4. package/gl-transitions.js +1 -1
  5. package/gl-transitions.json +1 -1
  6. package/glsl3/ArrowWipe.glsl +100 -0
  7. package/glsl3/BandWipe.glsl +67 -0
  8. package/glsl3/BlockSlide.glsl +87 -0
  9. package/glsl3/BowTie.glsl +1 -1
  10. package/glsl3/CellDissolve.glsl +91 -0
  11. package/glsl3/Crumple.glsl +173 -0
  12. package/glsl3/DirectionalWipe.glsl +1 -1
  13. package/glsl3/GlintDissolve.glsl +125 -0
  14. package/glsl3/HeatHaze.glsl +79 -0
  15. package/glsl3/Hologram.glsl +97 -0
  16. package/glsl3/InsetWipe.glsl +58 -0
  17. package/glsl3/LightningFlash.glsl +200 -0
  18. package/glsl3/LiquidFill.glsl +102 -0
  19. package/glsl3/PlasmaDissolve.glsl +51 -0
  20. package/glsl3/RingsWipe.glsl +106 -0
  21. package/glsl3/SawtoothWipe.glsl +73 -0
  22. package/glsl3/SnakeBlockWipe.glsl +40 -0
  23. package/glsl3/Snapshot.glsl +86 -0
  24. package/glsl3/Sphere.glsl +95 -0
  25. package/glsl3/SpiralBlockWipe.glsl +65 -0
  26. package/glsl3/Vortex.glsl +106 -0
  27. package/glsl3/WarpSpeed.glsl +120 -0
  28. package/index.js +1 -1
  29. package/layouts.json +846 -253
  30. package/llms-full.txt +665 -476
  31. package/llms.txt +197 -189
  32. package/msl/ArrowWipe.metal +391 -0
  33. package/msl/BandWipe.metal +353 -0
  34. package/msl/BlockSlide.metal +418 -0
  35. package/msl/BowTie.metal +1 -1
  36. package/msl/CellDissolve.metal +374 -0
  37. package/msl/Crumple.metal +766 -0
  38. package/msl/DirectionalWipe.metal +1 -1
  39. package/msl/GlintDissolve.metal +558 -0
  40. package/msl/HeatHaze.metal +320 -0
  41. package/msl/Hologram.metal +380 -0
  42. package/msl/InsetWipe.metal +232 -0
  43. package/msl/LightningFlash.metal +1038 -0
  44. package/msl/LiquidFill.metal +373 -0
  45. package/msl/PlasmaDissolve.metal +178 -0
  46. package/msl/RingsWipe.metal +437 -0
  47. package/msl/SawtoothWipe.metal +310 -0
  48. package/msl/SnakeBlockWipe.metal +216 -0
  49. package/msl/Snapshot.metal +321 -0
  50. package/msl/Sphere.metal +345 -0
  51. package/msl/SpiralBlockWipe.metal +281 -0
  52. package/msl/Vortex.metal +522 -0
  53. package/msl/WarpSpeed.metal +549 -0
  54. package/package.json +1 -1
  55. package/skills/gl-transitions/references/catalog.md +92 -59
  56. package/sksl/ArrowWipe.sksl +111 -0
  57. package/sksl/BandWipe.sksl +77 -0
  58. package/sksl/BlockSlide.sksl +99 -0
  59. package/sksl/BowTie.sksl +1 -1
  60. package/sksl/CellDissolve.sksl +103 -0
  61. package/sksl/Crumple.sksl +179 -0
  62. package/sksl/DirectionalWipe.sksl +1 -1
  63. package/sksl/GlintDissolve.sksl +136 -0
  64. package/sksl/HeatHaze.sksl +90 -0
  65. package/sksl/Hologram.sksl +108 -0
  66. package/sksl/InsetWipe.sksl +70 -0
  67. package/sksl/LightningFlash.sksl +202 -0
  68. package/sksl/LiquidFill.sksl +113 -0
  69. package/sksl/PlasmaDissolve.sksl +64 -0
  70. package/sksl/RingsWipe.sksl +115 -0
  71. package/sksl/SawtoothWipe.sksl +83 -0
  72. package/sksl/SnakeBlockWipe.sksl +53 -0
  73. package/sksl/Snapshot.sksl +98 -0
  74. package/sksl/Sphere.sksl +108 -0
  75. package/sksl/SpiralBlockWipe.sksl +76 -0
  76. package/sksl/Vortex.sksl +116 -0
  77. package/sksl/WarpSpeed.sksl +131 -0
  78. package/sksl/index.js +1 -1
  79. package/transitions/ArrowWipe.glsl +99 -0
  80. package/transitions/BandWipe.glsl +66 -0
  81. package/transitions/BlockSlide.glsl +86 -0
  82. package/transitions/BowTie.glsl +1 -1
  83. package/transitions/CellDissolve.glsl +90 -0
  84. package/transitions/Crumple.glsl +172 -0
  85. package/transitions/DirectionalWipe.glsl +1 -1
  86. package/transitions/GlintDissolve.glsl +124 -0
  87. package/transitions/HeatHaze.glsl +78 -0
  88. package/transitions/Hologram.glsl +96 -0
  89. package/transitions/InsetWipe.glsl +57 -0
  90. package/transitions/LightningFlash.glsl +199 -0
  91. package/transitions/LiquidFill.glsl +101 -0
  92. package/transitions/PlasmaDissolve.glsl +50 -0
  93. package/transitions/RingsWipe.glsl +105 -0
  94. package/transitions/SawtoothWipe.glsl +72 -0
  95. package/transitions/SnakeBlockWipe.glsl +39 -0
  96. package/transitions/Snapshot.glsl +85 -0
  97. package/transitions/Sphere.glsl +94 -0
  98. package/transitions/SpiralBlockWipe.glsl +64 -0
  99. package/transitions/Vortex.glsl +105 -0
  100. package/transitions/WarpSpeed.glsl +119 -0
  101. package/wgsl/ArrowWipe.wgsl +352 -0
  102. package/wgsl/BandWipe.wgsl +319 -0
  103. package/wgsl/BlockSlide.wgsl +384 -0
  104. package/wgsl/BowTie.wgsl +1 -1
  105. package/wgsl/CellDissolve.wgsl +323 -0
  106. package/wgsl/Crumple.wgsl +709 -0
  107. package/wgsl/DirectionalWipe.wgsl +1 -1
  108. package/wgsl/GlintDissolve.wgsl +519 -0
  109. package/wgsl/HeatHaze.wgsl +282 -0
  110. package/wgsl/Hologram.wgsl +339 -0
  111. package/wgsl/InsetWipe.wgsl +200 -0
  112. package/wgsl/LightningFlash.wgsl +964 -0
  113. package/wgsl/LiquidFill.wgsl +339 -0
  114. package/wgsl/PlasmaDissolve.wgsl +149 -0
  115. package/wgsl/RingsWipe.wgsl +394 -0
  116. package/wgsl/SawtoothWipe.wgsl +279 -0
  117. package/wgsl/SnakeBlockWipe.wgsl +188 -0
  118. package/wgsl/Snapshot.wgsl +287 -0
  119. package/wgsl/Sphere.wgsl +316 -0
  120. package/wgsl/SpiralBlockWipe.wgsl +250 -0
  121. package/wgsl/Vortex.wgsl +463 -0
  122. package/wgsl/WarpSpeed.wgsl +497 -0
  123. package/glsl3/BlockDissolve.glsl +0 -16
  124. package/glsl3/BowTieVertical.glsl +0 -117
  125. package/glsl3/Box.glsl +0 -33
  126. package/glsl3/LinearBlur.glsl +0 -30
  127. package/glsl3/MosaicBlend.glsl +0 -21
  128. package/glsl3/MosaicFade.glsl +0 -20
  129. package/glsl3/RotateFade.glsl +0 -22
  130. package/glsl3/ScaleIn.glsl +0 -18
  131. package/glsl3/WipeDown.glsl +0 -12
  132. package/glsl3/WipeLeft.glsl +0 -12
  133. package/glsl3/WipeRight.glsl +0 -12
  134. package/glsl3/WipeUp.glsl +0 -12
  135. package/msl/BlockDissolve.metal +0 -108
  136. package/msl/BowTieVertical.metal +0 -375
  137. package/msl/Box.metal +0 -204
  138. package/msl/LinearBlur.metal +0 -169
  139. package/msl/MosaicBlend.metal +0 -136
  140. package/msl/MosaicFade.metal +0 -137
  141. package/msl/RotateFade.metal +0 -116
  142. package/msl/ScaleIn.metal +0 -111
  143. package/msl/WipeDown.metal +0 -105
  144. package/msl/WipeLeft.metal +0 -105
  145. package/msl/WipeRight.metal +0 -105
  146. package/msl/WipeUp.metal +0 -105
  147. package/sksl/BlockDissolve.sksl +0 -29
  148. package/sksl/BowTieVertical.sksl +0 -130
  149. package/sksl/Box.sksl +0 -47
  150. package/sksl/LinearBlur.sksl +0 -44
  151. package/sksl/MosaicBlend.sksl +0 -34
  152. package/sksl/MosaicFade.sksl +0 -33
  153. package/sksl/RotateFade.sksl +0 -34
  154. package/sksl/ScaleIn.sksl +0 -32
  155. package/sksl/WipeDown.sksl +0 -26
  156. package/sksl/WipeLeft.sksl +0 -26
  157. package/sksl/WipeRight.sksl +0 -26
  158. package/sksl/WipeUp.sksl +0 -26
  159. package/transitions/BlockDissolve.glsl +0 -15
  160. package/transitions/BowTieVertical.glsl +0 -116
  161. package/transitions/Box.glsl +0 -32
  162. package/transitions/LinearBlur.glsl +0 -29
  163. package/transitions/MosaicBlend.glsl +0 -20
  164. package/transitions/MosaicFade.glsl +0 -19
  165. package/transitions/RotateFade.glsl +0 -21
  166. package/transitions/ScaleIn.glsl +0 -17
  167. package/transitions/WipeDown.glsl +0 -11
  168. package/transitions/WipeLeft.glsl +0 -11
  169. package/transitions/WipeRight.glsl +0 -11
  170. package/transitions/WipeUp.glsl +0 -11
  171. package/wgsl/BlockDissolve.wgsl +0 -78
  172. package/wgsl/BowTieVertical.wgsl +0 -331
  173. package/wgsl/Box.wgsl +0 -176
  174. package/wgsl/LinearBlur.wgsl +0 -131
  175. package/wgsl/MosaicBlend.wgsl +0 -108
  176. package/wgsl/MosaicFade.wgsl +0 -107
  177. package/wgsl/RotateFade.wgsl +0 -85
  178. package/wgsl/ScaleIn.wgsl +0 -79
  179. package/wgsl/WipeDown.wgsl +0 -77
  180. package/wgsl/WipeLeft.wgsl +0 -77
  181. package/wgsl/WipeRight.wgsl +0 -77
  182. package/wgsl/WipeUp.wgsl +0 -77
package/CHANGELOG.md CHANGED
@@ -1,5 +1,72 @@
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
+
36
+ ## 2.5.0
37
+
38
+ ### Minor Changes
39
+
40
+ - [#402](https://github.com/gl-transitions/gl-transitions/pull/402) [`d0c423e`](https://github.com/gl-transitions/gl-transitions/commit/d0c423ed0212e8e1259c9e5b137375f6520177c1) Thanks [@gre](https://github.com/gre)! - New transition: `ArrowWipe` by gre.
41
+
42
+ - [#412](https://github.com/gl-transitions/gl-transitions/pull/412) [`d33b467`](https://github.com/gl-transitions/gl-transitions/commit/d33b467d08aaa32138bf3d227e34eba7d4c059b4) Thanks [@gre](https://github.com/gre)! - New transition: `BlockSlide` by gre.
43
+
44
+ - [#404](https://github.com/gl-transitions/gl-transitions/pull/404) [`15e2d07`](https://github.com/gl-transitions/gl-transitions/commit/15e2d072450698c1eb5bae19c49e0a7a0ce510bb) Thanks [@gre](https://github.com/gre)! - New transition: `CellDissolve` by gre.
45
+
46
+ - [#414](https://github.com/gl-transitions/gl-transitions/pull/414) [`59a76b7`](https://github.com/gl-transitions/gl-transitions/commit/59a76b7950b245e44cddac21ff074da28933f317) Thanks [@gre](https://github.com/gre)! - New transition: `Crumple` by gre.
47
+
48
+ - [#406](https://github.com/gl-transitions/gl-transitions/pull/406) [`6b22a4d`](https://github.com/gl-transitions/gl-transitions/commit/6b22a4d0e733af3007b7b021a0e1f83dbccd9913) Thanks [@gre](https://github.com/gre)! - New transition: `HeatHaze` by gre.
49
+
50
+ - [#410](https://github.com/gl-transitions/gl-transitions/pull/410) [`f402f1d`](https://github.com/gl-transitions/gl-transitions/commit/f402f1df0729188236c28d1812ab2313bd197ed1) Thanks [@gre](https://github.com/gre)! - New transition: `Hologram` by gre.
51
+
52
+ - [#407](https://github.com/gl-transitions/gl-transitions/pull/407) [`7b7d3ec`](https://github.com/gl-transitions/gl-transitions/commit/7b7d3ec05826808474e6dc16efd1a79f7761f9d7) Thanks [@gre](https://github.com/gre)! - New transition: `LiquidFill` by gre.
53
+
54
+ - [#408](https://github.com/gl-transitions/gl-transitions/pull/408) [`1fafb57`](https://github.com/gl-transitions/gl-transitions/commit/1fafb573d52324d29531308fbda7faa4114af250) Thanks [@gre](https://github.com/gre)! - New transition: `PlasmaDissolve` by gre.
55
+
56
+ - [#409](https://github.com/gl-transitions/gl-transitions/pull/409) [`1ac8ea0`](https://github.com/gl-transitions/gl-transitions/commit/1ac8ea011a83e0229499cab38ce5a85d1f54030c) Thanks [@gre](https://github.com/gre)! - New transition: `RingsWipe` by gre.
57
+
58
+ - [#401](https://github.com/gl-transitions/gl-transitions/pull/401) [`b3922b6`](https://github.com/gl-transitions/gl-transitions/commit/b3922b6a2eb3bdf95089b0d20b3f2847b626703c) Thanks [@gre](https://github.com/gre)! - New transition: `SawtoothWipe` by gre.
59
+
60
+ - [#403](https://github.com/gl-transitions/gl-transitions/pull/403) [`dcf837e`](https://github.com/gl-transitions/gl-transitions/commit/dcf837e1ef195ba48487e613c441da6feaab8e97) Thanks [@gre](https://github.com/gre)! - New transition: `SnakeBlockWipe` by gre.
61
+
62
+ - [#398](https://github.com/gl-transitions/gl-transitions/pull/398) [`dc1fb25`](https://github.com/gl-transitions/gl-transitions/commit/dc1fb2582ef06fc529913f3d5959aa7234e0a535) Thanks [@gre](https://github.com/gre)! - New transition: `Snapshot` by gre.
63
+
64
+ - [#413](https://github.com/gl-transitions/gl-transitions/pull/413) [`90ae159`](https://github.com/gl-transitions/gl-transitions/commit/90ae159e7923ec92f86c25ee245c47778b486721) Thanks [@gre](https://github.com/gre)! - New transition: `Sphere` by gre.
65
+
66
+ - [#405](https://github.com/gl-transitions/gl-transitions/pull/405) [`b565549`](https://github.com/gl-transitions/gl-transitions/commit/b5655493ebb88501a4f52fecac57f515f09b152c) Thanks [@gre](https://github.com/gre)! - New transition: `SpiralBlockWipe` by gre.
67
+
68
+ - [#411](https://github.com/gl-transitions/gl-transitions/pull/411) [`882392b`](https://github.com/gl-transitions/gl-transitions/commit/882392b2e8d9c5c9287d6b6ab7e63dd3b0a2ee2f) Thanks [@gre](https://github.com/gre)! - New transition: `Vortex` by gre.
69
+
3
70
  ## 2.4.0
4
71
 
5
72
  ### 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