shaders 2.3.57 → 2.3.59
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.
- package/dist/core/{AngularBlur-BNL2_pBD.js → AngularBlur-CHTeMEG5.js} +1 -1
- package/dist/core/{Aurora-DtnRdRC-.js → Aurora-CF3ANMDG.js} +2 -2
- package/dist/core/{Beam-qJlv6CVV.js → Beam-DtcIK_b_.js} +2 -2
- package/dist/core/{Blob-DGRz-vGs.js → Blob-BnpAPM8l.js} +2 -2
- package/dist/core/{Bulge-54fwrqfj.js → Bulge-C3jFPuOK.js} +1 -1
- package/dist/core/{Checkerboard-DwFfxCnj.js → Checkerboard-D1ae-0n2.js} +2 -2
- package/dist/core/{ChromaFlow-EXxrLXaR.js → ChromaFlow-CeXcR6pL.js} +1 -1
- package/dist/core/{ChromaticAberration-CNR09GFf.js → ChromaticAberration-B4012BNj.js} +1 -1
- package/dist/core/{Circle-zhbK6F5c.js → Circle-DOQ5F63j.js} +2 -2
- package/dist/core/{ConcentricSpin-CDjyEIxy.js → ConcentricSpin-Ct7YyQP3.js} +1 -1
- package/dist/core/{ContourLines-zyy6CCUx.js → ContourLines-DWw0CHEU.js} +1 -1
- package/dist/core/{CursorRipples-CmE0GhQh.js → CursorRipples-Dl6VZaiT.js} +1 -1
- package/dist/core/{CursorTrail--yjKF5x6.js → CursorTrail-B7RS5cXG.js} +2 -2
- package/dist/core/{DiffuseBlur-CfZ3V94k.js → DiffuseBlur-o0h84ibu.js} +1 -1
- package/dist/core/{Dither-Cro5_SzL.js → Dither-BIhaGd7d.js} +1 -1
- package/dist/core/{DotGrid-BOS1G6mL.js → DotGrid-CrBCbO3M.js} +1 -1
- package/dist/core/{Duotone-bPh-N4wz.js → Duotone-HYxV5a8V.js} +2 -2
- package/dist/core/{FloatingParticles-DzTtE8CB.js → FloatingParticles-DeWwEtlq.js} +1 -1
- package/dist/core/{FlowField-Cuy2JAYR.js → FlowField-Bo4T5OFm.js} +1 -1
- package/dist/core/{Godrays-CbslvOsk.js → Godrays-CcJx19_L.js} +1 -1
- package/dist/core/{Grid-CGHXquxS.js → Grid-Cvpth9Oi.js} +1 -1
- package/dist/core/{GridDistortion-B3b17eue.js → GridDistortion-cTIdpRyG.js} +1 -1
- package/dist/core/{Halftone-iU8wtr1b.js → Halftone-BEPTnKW6.js} +1 -1
- package/dist/core/{Kaleidoscope-BL6E3BVU.js → Kaleidoscope-Cnfedu-B.js} +1 -1
- package/dist/core/{LensFlare-B-SuRYrs.js → LensFlare-DNO4UQG8.js} +1 -1
- package/dist/core/{LinearBlur-C022H2bm.js → LinearBlur-C_bpZQcG.js} +1 -1
- package/dist/core/{LinearGradient-Bw4cgU2M.js → LinearGradient-Bc1INE7C.js} +2 -2
- package/dist/core/{Liquify-C6s_nyRi.js → Liquify-D5sl_Rtk.js} +1 -1
- package/dist/core/{Mirror-uDxrbYeY.js → Mirror-C0hacD-B.js} +1 -1
- package/dist/core/{Perspective-C2l3C8d0.js → Perspective-CfC6bKsJ.js} +1 -1
- package/dist/core/{Plasma-B4lUXy1l.js → Plasma-D5gyjFl8.js} +2 -2
- package/dist/core/{PolarCoordinates-CxxFpdz2.js → PolarCoordinates-BhAihp7Z.js} +1 -1
- package/dist/core/{ProgressiveBlur-BnWdDciO.js → ProgressiveBlur-CJavcHQI.js} +1 -1
- package/dist/core/{RadialGradient-RBdy6zz7.js → RadialGradient-D4yl6nJ-.js} +2 -2
- package/dist/core/{RectangularCoordinates-CuKEfncN.js → RectangularCoordinates-CtXnf1mj.js} +1 -1
- package/dist/core/{Ripples-DPp17BSt.js → Ripples-DbZdh29z.js} +2 -2
- package/dist/core/{Shatter-CABbAt_A.js → Shatter-CYHavYlJ.js} +1 -1
- package/dist/core/{SimplexNoise-B6NBzB1e.js → SimplexNoise-VmkKWJJ_.js} +2 -2
- package/dist/core/{SineWave-6gxiNlvQ.js → SineWave-BJiQQ5mH.js} +1 -1
- package/dist/core/{SolidColor-DEXByN1S.js → SolidColor-Dym-TMi_.js} +1 -1
- package/dist/core/{Spherize-DRGaSHzl.js → Spherize-tGTqCifk.js} +1 -1
- package/dist/core/{Spiral-DT16M2Ky.js → Spiral-q4HnjiwB.js} +2 -2
- package/dist/core/{Strands-CQBNeiNL.js → Strands-BPQ8qqBR.js} +1 -1
- package/dist/core/{Stretch-DFVmX2dB.js → Stretch-DnMB46Ey.js} +1 -1
- package/dist/core/{Stripes-80nKu5P2.js → Stripes-Bb3sqRlB.js} +2 -2
- package/dist/core/{StudioBackground-81057m29.js → StudioBackground-DNezGoE_.js} +1 -1
- package/dist/core/{Swirl-C0caKRGI.js → Swirl-BnoTw2v_.js} +2 -2
- package/dist/core/{TiltShift-CNn3Yo34.js → TiltShift-B35F5fNx.js} +1 -1
- package/dist/core/{Tint-CfVQjPxR.js → Tint-BmwtUjg4.js} +1 -1
- package/dist/core/{Tritone-CM5ZgDQ5.js → Tritone-BplKm991.js} +2 -2
- package/dist/core/{Twirl-Bc95ho0B.js → Twirl-Dn5j12Yk.js} +1 -1
- package/dist/core/{WaveDistortion-w4LX_3ES.js → WaveDistortion-Dv8k3RMK.js} +1 -1
- package/dist/core/{ZoomBlur-D2DwyQKZ.js → ZoomBlur-CCSC20me.js} +1 -1
- package/dist/core/colorMixing-D_wMclqL.js +196 -0
- package/dist/core/index.js +1 -1
- package/dist/core/registry.js +55 -55
- package/dist/core/shaders/AngularBlur/index.js +2 -2
- package/dist/core/shaders/Aurora/index.js +3 -3
- package/dist/core/shaders/Beam/index.js +3 -3
- package/dist/core/shaders/Blob/index.js +3 -3
- package/dist/core/shaders/Bulge/index.js +2 -2
- package/dist/core/shaders/Checkerboard/index.js +3 -3
- package/dist/core/shaders/ChromaFlow/index.js +2 -2
- package/dist/core/shaders/ChromaticAberration/index.js +2 -2
- package/dist/core/shaders/Circle/index.js +3 -3
- package/dist/core/shaders/ConcentricSpin/index.js +2 -2
- package/dist/core/shaders/ContourLines/index.js +2 -2
- package/dist/core/shaders/CursorRipples/index.js +2 -2
- package/dist/core/shaders/CursorTrail/index.js +3 -3
- package/dist/core/shaders/DiffuseBlur/index.js +2 -2
- package/dist/core/shaders/Dither/index.js +2 -2
- package/dist/core/shaders/DotGrid/index.js +2 -2
- package/dist/core/shaders/Duotone/index.js +3 -3
- package/dist/core/shaders/FloatingParticles/index.js +2 -2
- package/dist/core/shaders/FlowField/index.js +2 -2
- package/dist/core/shaders/Godrays/index.js +2 -2
- package/dist/core/shaders/Grid/index.js +2 -2
- package/dist/core/shaders/GridDistortion/index.js +2 -2
- package/dist/core/shaders/Halftone/index.js +2 -2
- package/dist/core/shaders/Kaleidoscope/index.js +2 -2
- package/dist/core/shaders/LensFlare/index.js +2 -2
- package/dist/core/shaders/LinearBlur/index.js +2 -2
- package/dist/core/shaders/LinearGradient/index.js +3 -3
- package/dist/core/shaders/Liquify/index.js +2 -2
- package/dist/core/shaders/Mirror/index.js +2 -2
- package/dist/core/shaders/Perspective/index.js +2 -2
- package/dist/core/shaders/Plasma/index.js +3 -3
- package/dist/core/shaders/PolarCoordinates/index.js +2 -2
- package/dist/core/shaders/ProgressiveBlur/index.js +2 -2
- package/dist/core/shaders/RadialGradient/index.js +3 -3
- package/dist/core/shaders/RectangularCoordinates/index.js +2 -2
- package/dist/core/shaders/Ripples/index.js +3 -3
- package/dist/core/shaders/Shatter/index.js +2 -2
- package/dist/core/shaders/SimplexNoise/index.js +3 -3
- package/dist/core/shaders/SineWave/index.js +2 -2
- package/dist/core/shaders/SolidColor/index.js +2 -2
- package/dist/core/shaders/Spherize/index.js +2 -2
- package/dist/core/shaders/Spiral/index.js +3 -3
- package/dist/core/shaders/Strands/index.js +2 -2
- package/dist/core/shaders/Stretch/index.js +2 -2
- package/dist/core/shaders/Stripes/index.js +3 -3
- package/dist/core/shaders/StudioBackground/index.js +2 -2
- package/dist/core/shaders/Swirl/index.js +3 -3
- package/dist/core/shaders/TiltShift/index.js +2 -2
- package/dist/core/shaders/Tint/index.js +2 -2
- package/dist/core/shaders/Tritone/index.js +3 -3
- package/dist/core/shaders/Twirl/index.js +2 -2
- package/dist/core/shaders/WaveDistortion/index.js +2 -2
- package/dist/core/shaders/ZoomBlur/index.js +2 -2
- package/dist/core/{transformations-CC_c-QAT.js → transformations-DM6huB9g.js} +16 -1
- package/dist/core/utilities/colorMixing.d.ts +2 -1
- package/dist/core/utilities/colorMixing.d.ts.map +1 -1
- package/dist/core/utilities/transformations.d.ts +2 -2
- package/dist/core/utilities/transformations.d.ts.map +1 -1
- package/dist/registry.js +336 -0
- package/package.json +1 -1
- package/dist/core/colorMixing-DZpckBhm.js +0 -68
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../transformations-
|
|
1
|
+
import "../../transformations-DM6huB9g.js";
|
|
2
2
|
import "../../time-BZqyVJXt.js";
|
|
3
|
-
import "../../colorMixing-
|
|
4
|
-
import { n as componentDefinition, t as Plasma_default } from "../../Plasma-
|
|
3
|
+
import "../../colorMixing-D_wMclqL.js";
|
|
4
|
+
import { n as componentDefinition, t as Plasma_default } from "../../Plasma-D5gyjFl8.js";
|
|
5
5
|
export { componentDefinition, Plasma_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../edges-Bd7GP4s2.js";
|
|
2
|
-
import "../../transformations-
|
|
2
|
+
import "../../transformations-DM6huB9g.js";
|
|
3
3
|
import "../../alpha-Byel9eTg.js";
|
|
4
|
-
import { n as componentDefinition, t as PolarCoordinates_default } from "../../PolarCoordinates-
|
|
4
|
+
import { n as componentDefinition, t as PolarCoordinates_default } from "../../PolarCoordinates-BhAihp7Z.js";
|
|
5
5
|
export { componentDefinition, PolarCoordinates_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../transformations-
|
|
1
|
+
import "../../transformations-DM6huB9g.js";
|
|
2
2
|
import "../../alpha-Byel9eTg.js";
|
|
3
|
-
import { n as componentDefinition, t as ProgressiveBlur_default } from "../../ProgressiveBlur-
|
|
3
|
+
import { n as componentDefinition, t as ProgressiveBlur_default } from "../../ProgressiveBlur-CJavcHQI.js";
|
|
4
4
|
export { componentDefinition, ProgressiveBlur_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../transformations-
|
|
2
|
-
import "../../colorMixing-
|
|
3
|
-
import { n as componentDefinition, t as RadialGradient_default } from "../../RadialGradient-
|
|
1
|
+
import "../../transformations-DM6huB9g.js";
|
|
2
|
+
import "../../colorMixing-D_wMclqL.js";
|
|
3
|
+
import { n as componentDefinition, t as RadialGradient_default } from "../../RadialGradient-D4yl6nJ-.js";
|
|
4
4
|
export { componentDefinition, RadialGradient_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../edges-Bd7GP4s2.js";
|
|
2
|
-
import "../../transformations-
|
|
2
|
+
import "../../transformations-DM6huB9g.js";
|
|
3
3
|
import "../../alpha-Byel9eTg.js";
|
|
4
|
-
import { n as componentDefinition, t as RectangularCoordinates_default } from "../../RectangularCoordinates-
|
|
4
|
+
import { n as componentDefinition, t as RectangularCoordinates_default } from "../../RectangularCoordinates-CtXnf1mj.js";
|
|
5
5
|
export { componentDefinition, RectangularCoordinates_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../transformations-
|
|
1
|
+
import "../../transformations-DM6huB9g.js";
|
|
2
2
|
import "../../time-BZqyVJXt.js";
|
|
3
|
-
import "../../colorMixing-
|
|
4
|
-
import { n as componentDefinition, t as Ripples_default } from "../../Ripples-
|
|
3
|
+
import "../../colorMixing-D_wMclqL.js";
|
|
4
|
+
import { n as componentDefinition, t as Ripples_default } from "../../Ripples-DbZdh29z.js";
|
|
5
5
|
export { componentDefinition, Ripples_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../edges-Bd7GP4s2.js";
|
|
2
|
-
import "../../transformations-
|
|
2
|
+
import "../../transformations-DM6huB9g.js";
|
|
3
3
|
import "../../alpha-Byel9eTg.js";
|
|
4
|
-
import { n as componentDefinition, t as Shatter_default } from "../../Shatter-
|
|
4
|
+
import { n as componentDefinition, t as Shatter_default } from "../../Shatter-CYHavYlJ.js";
|
|
5
5
|
export { componentDefinition, Shatter_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../transformations-
|
|
1
|
+
import "../../transformations-DM6huB9g.js";
|
|
2
2
|
import "../../time-BZqyVJXt.js";
|
|
3
|
-
import "../../colorMixing-
|
|
4
|
-
import { n as componentDefinition, t as SimplexNoise_default } from "../../SimplexNoise-
|
|
3
|
+
import "../../colorMixing-D_wMclqL.js";
|
|
4
|
+
import { n as componentDefinition, t as SimplexNoise_default } from "../../SimplexNoise-VmkKWJJ_.js";
|
|
5
5
|
export { componentDefinition, SimplexNoise_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../transformations-
|
|
1
|
+
import "../../transformations-DM6huB9g.js";
|
|
2
2
|
import "../../time-BZqyVJXt.js";
|
|
3
|
-
import { n as componentDefinition, t as SineWave_default } from "../../SineWave-
|
|
3
|
+
import { n as componentDefinition, t as SineWave_default } from "../../SineWave-BJiQQ5mH.js";
|
|
4
4
|
export { componentDefinition, SineWave_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../transformations-
|
|
2
|
-
import { n as componentDefinition, t as SolidColor_default } from "../../SolidColor-
|
|
1
|
+
import "../../transformations-DM6huB9g.js";
|
|
2
|
+
import { n as componentDefinition, t as SolidColor_default } from "../../SolidColor-Dym-TMi_.js";
|
|
3
3
|
export { componentDefinition, SolidColor_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../transformations-
|
|
1
|
+
import "../../transformations-DM6huB9g.js";
|
|
2
2
|
import "../../alpha-Byel9eTg.js";
|
|
3
|
-
import { n as componentDefinition, t as Spherize_default } from "../../Spherize-
|
|
3
|
+
import { n as componentDefinition, t as Spherize_default } from "../../Spherize-tGTqCifk.js";
|
|
4
4
|
export { componentDefinition, Spherize_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../transformations-
|
|
1
|
+
import "../../transformations-DM6huB9g.js";
|
|
2
2
|
import "../../time-BZqyVJXt.js";
|
|
3
|
-
import "../../colorMixing-
|
|
4
|
-
import { n as componentDefinition, t as Spiral_default } from "../../Spiral-
|
|
3
|
+
import "../../colorMixing-D_wMclqL.js";
|
|
4
|
+
import { n as componentDefinition, t as Spiral_default } from "../../Spiral-q4HnjiwB.js";
|
|
5
5
|
export { componentDefinition, Spiral_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../transformations-
|
|
1
|
+
import "../../transformations-DM6huB9g.js";
|
|
2
2
|
import "../../time-BZqyVJXt.js";
|
|
3
|
-
import { n as componentDefinition, t as Strands_default } from "../../Strands-
|
|
3
|
+
import { n as componentDefinition, t as Strands_default } from "../../Strands-BPQ8qqBR.js";
|
|
4
4
|
export { componentDefinition, Strands_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../edges-Bd7GP4s2.js";
|
|
2
|
-
import "../../transformations-
|
|
2
|
+
import "../../transformations-DM6huB9g.js";
|
|
3
3
|
import "../../alpha-Byel9eTg.js";
|
|
4
|
-
import { n as componentDefinition, t as Stretch_default } from "../../Stretch-
|
|
4
|
+
import { n as componentDefinition, t as Stretch_default } from "../../Stretch-DnMB46Ey.js";
|
|
5
5
|
export { componentDefinition, Stretch_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../transformations-
|
|
1
|
+
import "../../transformations-DM6huB9g.js";
|
|
2
2
|
import "../../time-BZqyVJXt.js";
|
|
3
|
-
import "../../colorMixing-
|
|
4
|
-
import { n as componentDefinition, t as Stripes_default } from "../../Stripes-
|
|
3
|
+
import "../../colorMixing-D_wMclqL.js";
|
|
4
|
+
import { n as componentDefinition, t as Stripes_default } from "../../Stripes-Bb3sqRlB.js";
|
|
5
5
|
export { componentDefinition, Stripes_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../transformations-
|
|
1
|
+
import "../../transformations-DM6huB9g.js";
|
|
2
2
|
import "../../time-BZqyVJXt.js";
|
|
3
|
-
import { n as componentDefinition, t as StudioBackground_default } from "../../StudioBackground-
|
|
3
|
+
import { n as componentDefinition, t as StudioBackground_default } from "../../StudioBackground-DNezGoE_.js";
|
|
4
4
|
export { componentDefinition, StudioBackground_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../transformations-
|
|
1
|
+
import "../../transformations-DM6huB9g.js";
|
|
2
2
|
import "../../time-BZqyVJXt.js";
|
|
3
|
-
import "../../colorMixing-
|
|
4
|
-
import { n as componentDefinition, t as Swirl_default } from "../../Swirl-
|
|
3
|
+
import "../../colorMixing-D_wMclqL.js";
|
|
4
|
+
import { n as componentDefinition, t as Swirl_default } from "../../Swirl-BnoTw2v_.js";
|
|
5
5
|
export { componentDefinition, Swirl_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../transformations-
|
|
1
|
+
import "../../transformations-DM6huB9g.js";
|
|
2
2
|
import "../../alpha-Byel9eTg.js";
|
|
3
|
-
import { n as componentDefinition, t as TiltShift_default } from "../../TiltShift-
|
|
3
|
+
import { n as componentDefinition, t as TiltShift_default } from "../../TiltShift-B35F5fNx.js";
|
|
4
4
|
export { componentDefinition, TiltShift_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../transformations-
|
|
2
|
-
import { n as componentDefinition, t as Tint_default } from "../../Tint-
|
|
1
|
+
import "../../transformations-DM6huB9g.js";
|
|
2
|
+
import { n as componentDefinition, t as Tint_default } from "../../Tint-BmwtUjg4.js";
|
|
3
3
|
export { componentDefinition, Tint_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../transformations-
|
|
1
|
+
import "../../transformations-DM6huB9g.js";
|
|
2
2
|
import "../../alpha-Byel9eTg.js";
|
|
3
|
-
import "../../colorMixing-
|
|
4
|
-
import { n as componentDefinition, t as Tritone_default } from "../../Tritone-
|
|
3
|
+
import "../../colorMixing-D_wMclqL.js";
|
|
4
|
+
import { n as componentDefinition, t as Tritone_default } from "../../Tritone-BplKm991.js";
|
|
5
5
|
export { componentDefinition, Tritone_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../edges-Bd7GP4s2.js";
|
|
2
|
-
import "../../transformations-
|
|
2
|
+
import "../../transformations-DM6huB9g.js";
|
|
3
3
|
import "../../alpha-Byel9eTg.js";
|
|
4
|
-
import { n as componentDefinition, t as Twirl_default } from "../../Twirl-
|
|
4
|
+
import { n as componentDefinition, t as Twirl_default } from "../../Twirl-Dn5j12Yk.js";
|
|
5
5
|
export { componentDefinition, Twirl_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../edges-Bd7GP4s2.js";
|
|
2
|
-
import "../../transformations-
|
|
2
|
+
import "../../transformations-DM6huB9g.js";
|
|
3
3
|
import "../../time-BZqyVJXt.js";
|
|
4
4
|
import "../../alpha-Byel9eTg.js";
|
|
5
|
-
import { n as componentDefinition, t as WaveDistortion_default } from "../../WaveDistortion-
|
|
5
|
+
import { n as componentDefinition, t as WaveDistortion_default } from "../../WaveDistortion-Dv8k3RMK.js";
|
|
6
6
|
export { componentDefinition, WaveDistortion_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../transformations-
|
|
1
|
+
import "../../transformations-DM6huB9g.js";
|
|
2
2
|
import "../../alpha-Byel9eTg.js";
|
|
3
|
-
import { n as componentDefinition, t as ZoomBlur_default } from "../../ZoomBlur-
|
|
3
|
+
import { n as componentDefinition, t as ZoomBlur_default } from "../../ZoomBlur-CCSC20me.js";
|
|
4
4
|
export { componentDefinition, ZoomBlur_default as default };
|
|
@@ -4747,13 +4747,28 @@ const colorSpaceOptions = [
|
|
|
4747
4747
|
{
|
|
4748
4748
|
label: "OKLAB",
|
|
4749
4749
|
value: "oklab"
|
|
4750
|
+
},
|
|
4751
|
+
{
|
|
4752
|
+
label: "HSL",
|
|
4753
|
+
value: "hsl"
|
|
4754
|
+
},
|
|
4755
|
+
{
|
|
4756
|
+
label: "HSV",
|
|
4757
|
+
value: "hsv"
|
|
4758
|
+
},
|
|
4759
|
+
{
|
|
4760
|
+
label: "LCH",
|
|
4761
|
+
value: "lch"
|
|
4750
4762
|
}
|
|
4751
4763
|
];
|
|
4752
4764
|
const transformColorSpace = (value) => {
|
|
4753
4765
|
const mode = {
|
|
4754
4766
|
"linear": 0,
|
|
4755
4767
|
"oklch": 1,
|
|
4756
|
-
"oklab": 2
|
|
4768
|
+
"oklab": 2,
|
|
4769
|
+
"hsl": 3,
|
|
4770
|
+
"hsv": 4,
|
|
4771
|
+
"lch": 5
|
|
4757
4772
|
}[value.toLowerCase()];
|
|
4758
4773
|
if (mode === void 0) {
|
|
4759
4774
|
console.warn(`Invalid color space mode: ${value}. Defaulting to 'linear'.`);
|
|
@@ -6,7 +6,8 @@ import { Node } from 'three/webgpu';
|
|
|
6
6
|
* @param colorA - First color (vec4 with RGBA in P3-linear)
|
|
7
7
|
* @param colorB - Second color (vec4 with RGBA in P3-linear)
|
|
8
8
|
* @param t - Interpolation factor (0 = colorA, 1 = colorB)
|
|
9
|
-
* @param colorSpaceMode - Color space mode
|
|
9
|
+
* @param colorSpaceMode - Color space mode:
|
|
10
|
+
* 0 = linear RGB, 1 = OKLCh, 2 = OKLAB, 3 = HSL, 4 = HSV, 5 = LCH
|
|
10
11
|
* @returns Mixed color as vec4 in P3-linear
|
|
11
12
|
*/
|
|
12
13
|
export declare const mixColors: (colorA: Node, colorB: Node, t: Node, colorSpaceMode: Node) => Node;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colorMixing.d.ts","sourceRoot":"","sources":["../../src/utilities/colorMixing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"colorMixing.d.ts","sourceRoot":"","sources":["../../src/utilities/colorMixing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,cAAc,CAAA;AAmZtC;;;;;;;;;GASG;AACH,eAAO,MAAM,SAAS,WACV,IAAI,UACJ,IAAI,KACT,IAAI,kBACS,IAAI,KACrB,IA4FF,CAAA"}
|
|
@@ -76,8 +76,8 @@ export declare const colorSpaceOptions: {
|
|
|
76
76
|
* Transform color space interpolation mode strings into numeric values for shader use.
|
|
77
77
|
* Controls how colors are mixed/interpolated in gradient effects.
|
|
78
78
|
*
|
|
79
|
-
* @param value - Color space string ('linear', 'oklch', or '
|
|
80
|
-
* @returns Numeric mode value (0 = linear RGB, 1 = OKLCh, 2 = OKLAB)
|
|
79
|
+
* @param value - Color space string ('linear', 'oklch', 'oklab', 'hsl', 'hsv', or 'lch')
|
|
80
|
+
* @returns Numeric mode value (0 = linear RGB, 1 = OKLCh, 2 = OKLAB, 3 = HSL, 4 = HSV, 5 = LCH)
|
|
81
81
|
*/
|
|
82
82
|
export declare const transformColorSpace: (value: string) => number;
|
|
83
83
|
//# sourceMappingURL=transformations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformations.d.ts","sourceRoot":"","sources":["../../src/utilities/transformations.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,OAAO,EAAE,OAAO,EAAC,MAAM,OAAO,CAAA;AAuBtC;;;GAGG;AACH,eAAO,MAAM,gBAAgB,UAAW,OAAO,WAAkB,CAAA;AAEjE;;;;GAIG;AACH,eAAO,MAAM,cAAc,UAAW,MAAM;UAKV,GAAG;;CAGpC,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,UAAW,MAAM,KAAG,OAIpD,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,UAAW;IAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAAC,GAAG,MAAM;UA4DzD,GAAG;;CAGnC,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,UAAW;IAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAAC,GAAG,MAAM,KAAG,OAiDlG,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,UAAW,MAAM,GAAG,MAAM,KAAG,MAyEvD,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,UAAW,MAAM,KAAG,MAe9C,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;
|
|
1
|
+
{"version":3,"file":"transformations.d.ts","sourceRoot":"","sources":["../../src/utilities/transformations.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,OAAO,EAAE,OAAO,EAAC,MAAM,OAAO,CAAA;AAuBtC;;;GAGG;AACH,eAAO,MAAM,gBAAgB,UAAW,OAAO,WAAkB,CAAA;AAEjE;;;;GAIG;AACH,eAAO,MAAM,cAAc,UAAW,MAAM;UAKV,GAAG;;CAGpC,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,UAAW,MAAM,KAAG,OAIpD,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,UAAW;IAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAAC,GAAG,MAAM;UA4DzD,GAAG;;CAGnC,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,UAAW;IAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAAC,GAAG,MAAM,KAAG,OAiDlG,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,UAAW,MAAM,GAAG,MAAM,KAAG,MAyEvD,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,UAAW,MAAM,KAAG,MAe9C,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;GAO7B,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,UAAW,MAAM,KAAG,MAiBnD,CAAA"}
|