@remotion/effects 4.0.536 → 4.0.538
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/THIRD_PARTY_LICENSES.md +30 -0
- package/dist/barrel-distortion/index.d.ts +1 -1
- package/dist/bevel-alpha/index.d.ts +13 -0
- package/dist/bevel-alpha/shaders.d.ts +3 -0
- package/dist/bevel-alpha.d.ts +1 -0
- package/dist/blur/index.d.ts +1 -1
- package/dist/brightness.d.ts +1 -1
- package/dist/burlap.d.ts +1 -1
- package/dist/checkerboard.d.ts +17 -17
- package/dist/chromatic-aberration/index.d.ts +1 -1
- package/dist/color-correction.d.ts +1 -1
- package/dist/color-key.d.ts +9 -9
- package/dist/color-utils.d.ts +8 -8
- package/dist/contour-lines.d.ts +23 -23
- package/dist/contrast.d.ts +1 -1
- package/dist/corner-pin/index.d.ts +1 -1
- package/dist/cylinder/index.d.ts +20 -0
- package/dist/cylinder/shader.d.ts +1 -0
- package/dist/cylinder.d.ts +1 -0
- package/dist/dot-grid.d.ts +7 -7
- package/dist/drop-shadow/index.d.ts +1 -1
- package/dist/duotone.d.ts +7 -7
- package/dist/emboss.d.ts +15 -15
- package/dist/esm/bevel-alpha.mjs +474 -0
- package/dist/esm/cylinder.mjs +390 -0
- package/dist/esm/fractal-noise.mjs +688 -0
- package/dist/esm/lens-blur.mjs +550 -0
- package/dist/esm/long-shadows.mjs +410 -0
- package/dist/esm/page-turn.mjs +405 -0
- package/dist/esm/sphere.mjs +376 -0
- package/dist/esm/turbulent-displace.mjs +652 -0
- package/dist/evolve.d.ts +8 -8
- package/dist/exposure.d.ts +1 -1
- package/dist/fisheye/index.d.ts +1 -1
- package/dist/flannel.d.ts +1 -1
- package/dist/fractal-noise/index.d.ts +40 -0
- package/dist/fractal-noise/shader.d.ts +1 -0
- package/dist/fractal-noise.d.ts +1 -0
- package/dist/gaussian-blur-shader.d.ts +1 -1
- package/dist/glow/index.d.ts +1 -1
- package/dist/grayscale.d.ts +1 -1
- package/dist/gridlines.d.ts +23 -23
- package/dist/halftone-linear-gradient.d.ts +21 -21
- package/dist/halftone.d.ts +25 -25
- package/dist/hue.d.ts +1 -1
- package/dist/invert.d.ts +1 -1
- package/dist/lens-blur/index.d.ts +30 -0
- package/dist/lens-blur/shader.d.ts +1 -0
- package/dist/lens-blur.d.ts +1 -0
- package/dist/levels.d.ts +1 -1
- package/dist/light-leak.d.ts +7 -7
- package/dist/light-trail/index.d.ts +1 -1
- package/dist/linear-gradient-tint.d.ts +1 -1
- package/dist/linear-gradient.d.ts +1 -1
- package/dist/linear-progressive-blur/index.d.ts +1 -1
- package/dist/linear-progressive-blur/linear-progressive-blur-shaders.d.ts +1 -1
- package/dist/linear-progressive-pixelate/index.d.ts +1 -1
- package/dist/lines.d.ts +18 -18
- package/dist/liquid-contours.d.ts +21 -21
- package/dist/long-shadows.d.ts +13 -0
- package/dist/lut/index.d.ts +3 -3
- package/dist/mirror/index.d.ts +1 -1
- package/dist/noise-displacement.d.ts +1 -1
- package/dist/noise.d.ts +1 -1
- package/dist/outline/polygonize-alpha.d.ts +1 -1
- package/dist/outline.d.ts +11 -11
- package/dist/page-turn/index.d.ts +20 -0
- package/dist/page-turn/shader.d.ts +1 -0
- package/dist/page-turn.d.ts +1 -0
- package/dist/paper.d.ts +1 -1
- package/dist/pattern.d.ts +1 -1
- package/dist/pixel-dissolve.d.ts +1 -1
- package/dist/pixelate.d.ts +1 -1
- package/dist/radial-progressive-blur/index.d.ts +1 -1
- package/dist/radial-progressive-blur/radial-progressive-blur-shaders.d.ts +1 -1
- package/dist/radial-progressive-pixelate/index.d.ts +1 -1
- package/dist/region-blur/index.d.ts +11 -11
- package/dist/rings.d.ts +15 -15
- package/dist/roughen-edges.d.ts +1 -1
- package/dist/saturation.d.ts +1 -1
- package/dist/scale/index.d.ts +1 -1
- package/dist/scanlines.d.ts +1 -1
- package/dist/shadows-highlights.d.ts +1 -1
- package/dist/shine.d.ts +1 -1
- package/dist/shrinkwrap.d.ts +1 -1
- package/dist/skew.d.ts +1 -1
- package/dist/speckle.d.ts +1 -1
- package/dist/sphere/index.d.ts +18 -0
- package/dist/sphere/shader.d.ts +1 -0
- package/dist/sphere.d.ts +1 -0
- package/dist/starburst.d.ts +13 -13
- package/dist/tear.d.ts +1 -1
- package/dist/thermal-vision.d.ts +7 -7
- package/dist/tile.d.ts +1 -1
- package/dist/tint.d.ts +5 -5
- package/dist/translate/index.d.ts +2 -2
- package/dist/turbulent-displace/index.d.ts +28 -0
- package/dist/turbulent-displace/shader.d.ts +1 -0
- package/dist/turbulent-displace.d.ts +1 -0
- package/dist/tv-signal-off.d.ts +1 -1
- package/dist/value-noise-shader.d.ts +1 -0
- package/dist/venetian-blinds.d.ts +8 -8
- package/dist/vibrance.d.ts +1 -1
- package/dist/vignette.d.ts +16 -16
- package/dist/visual-test/visual-utils.d.ts +8 -8
- package/dist/wave/index.d.ts +1 -1
- package/dist/waves.d.ts +24 -24
- package/dist/webgpu-projection-runtime.d.ts +24 -0
- package/dist/white-balance.d.ts +1 -1
- package/dist/white-noise.d.ts +1 -1
- package/dist/zigzag.d.ts +22 -22
- package/dist/zoom-blur/index.d.ts +1 -1
- package/package.json +71 -6
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Third-party licenses
|
|
2
|
+
|
|
3
|
+
## EffectCraft
|
|
4
|
+
|
|
5
|
+
The Fractal Noise, Turbulent Displace, Lens Blur, and Bevel Alpha shaders are
|
|
6
|
+
adapted from the noise, distortion, blur, and perspective engines in
|
|
7
|
+
[EffectCraft](https://github.com/storytold/effectcraft), revision
|
|
8
|
+
`8f02f52a44a4b1ea807d8824b92301b96f896a06`. It is used under the MIT license.
|
|
9
|
+
|
|
10
|
+
MIT License
|
|
11
|
+
|
|
12
|
+
Copyright (c) 2026 ArtCraft Team and the EffectCraft contributors
|
|
13
|
+
|
|
14
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
15
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
16
|
+
in the Software without restriction, including without limitation the rights
|
|
17
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
18
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
19
|
+
furnished to do so, subject to the following conditions:
|
|
20
|
+
|
|
21
|
+
The above copyright notice and this permission notice shall be included in all
|
|
22
|
+
copies or substantial portions of the Software.
|
|
23
|
+
|
|
24
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
25
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
26
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
27
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
28
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
29
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
30
|
+
SOFTWARE.
|
|
@@ -3,5 +3,5 @@ export type BarrelDistortionParams = {
|
|
|
3
3
|
readonly amount?: number;
|
|
4
4
|
};
|
|
5
5
|
export declare const barrelDistortion: (params?: (BarrelDistortionParams & {
|
|
6
|
-
readonly disabled?: boolean
|
|
6
|
+
readonly disabled?: boolean;
|
|
7
7
|
}) | undefined) => import("remotion").EffectDescriptor<unknown>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type BevelAlphaParams = {
|
|
2
|
+
/** Width of the rounded bevel in pixels, from 0 to 200. Defaults to `2`. */
|
|
3
|
+
readonly edgeThickness?: number;
|
|
4
|
+
/** Light direction in degrees, clockwise from above. Defaults to `-60`. */
|
|
5
|
+
readonly lightAngle?: number;
|
|
6
|
+
/** CSS color of the highlights. Defaults to `white`. */
|
|
7
|
+
readonly lightColor?: string;
|
|
8
|
+
/** Strength of highlights and shadows, from 0 to 1. Defaults to `0.4`. */
|
|
9
|
+
readonly lightIntensity?: number;
|
|
10
|
+
};
|
|
11
|
+
export declare const bevelAlpha: (params?: (BevelAlphaParams & {
|
|
12
|
+
readonly disabled?: boolean;
|
|
13
|
+
}) | undefined) => import("remotion").EffectDescriptor<unknown>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const BEVEL_ALPHA_VERTEX_SHADER = "#version 300 es\nlayout(location = 0) in vec2 aPos;\nlayout(location = 1) in vec2 aUv;\nout vec2 vUv;\nvoid main() {\n\tvUv = aUv;\n\tgl_Position = vec4(aPos, 0.0, 1.0);\n}\n";
|
|
2
|
+
export declare const buildBevelAlphaBlurShader: (direction: 'horizontal' | 'vertical') => string;
|
|
3
|
+
export declare const BEVEL_ALPHA_SHADE_SHADER = "#version 300 es\nprecision highp float;\nin vec2 vUv;\nout vec4 fragColor;\nuniform sampler2D uSource;\nuniform sampler2D uHeight;\nuniform vec2 uResolution;\nuniform float uEdgeThickness;\nuniform vec3 uLightDirection;\nuniform vec3 uLightColor;\nuniform float uLightIntensity;\n\n// Store a 16-bit height in two 8-bit channels. This avoids banded normals\n// without requiring floating-point render targets or WebGL extensions.\nvec4 encodeHeight(float height) {\n\tfloat value = floor(clamp(height, 0.0, 1.0) * 65535.0 + 0.5);\n\treturn vec4(floor(value / 256.0), mod(value, 256.0), 0.0, 255.0) / 255.0;\n}\nfloat decodeHeight(vec4 value) {\n\treturn dot(value.rg, vec2(65280.0, 255.0)) / 65535.0;\n}\n\nfloat heightAt(ivec2 pixel) {\n\treturn decodeHeight(texelFetch(uHeight, clamp(pixel, ivec2(0), ivec2(uResolution) - 1), 0));\n}\nvoid main() {\n\tvec4 source = texelFetch(uSource, ivec2(gl_FragCoord.xy), 0);\n\tif (uEdgeThickness == 0.0 || uLightIntensity == 0.0 || source.a == 0.0) {\n\t\tfragColor = source;\n\t\treturn;\n\t}\n\tivec2 pixel = ivec2(gl_FragCoord.xy);\n\tfloat dx = (heightAt(pixel + ivec2(1, 0)) - heightAt(pixel - ivec2(1, 0))) * 0.5;\n\t// Screen-space Y points down; texture-space Y points up.\n\tfloat dy = (heightAt(pixel - ivec2(0, 1)) - heightAt(pixel + ivec2(0, 1))) * 0.5;\n\tvec3 normal = normalize(vec3(-dx * uEdgeThickness * 1.25, -dy * uEdgeThickness * 1.25, 1.0));\n\tfloat shade = (dot(normal, uLightDirection) - uLightDirection.z) * uLightIntensity * 2.0;\n\tvec3 color = source.rgb;\n\tif (shade > 0.0) {\n\t\tcolor += uLightColor * shade * source.a;\n\t} else {\n\t\tcolor *= max(1.0 + shade, 0.0);\n\t}\n\tfragColor = vec4(clamp(color, vec3(0.0), vec3(source.a)), source.a);\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { bevelAlpha, type BevelAlphaParams } from './bevel-alpha/index.js';
|
package/dist/blur/index.d.ts
CHANGED
package/dist/brightness.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ export type BrightnessParams = {
|
|
|
3
3
|
readonly amount?: number;
|
|
4
4
|
};
|
|
5
5
|
export declare const brightness: (params?: (BrightnessParams & {
|
|
6
|
-
readonly disabled?: boolean
|
|
6
|
+
readonly disabled?: boolean;
|
|
7
7
|
}) | undefined) => import("remotion").EffectDescriptor<unknown>;
|
package/dist/burlap.d.ts
CHANGED
|
@@ -11,5 +11,5 @@ export type BurlapParams = {
|
|
|
11
11
|
readonly color?: string;
|
|
12
12
|
};
|
|
13
13
|
export declare const burlap: (params?: (BurlapParams & {
|
|
14
|
-
readonly disabled?: boolean
|
|
14
|
+
readonly disabled?: boolean;
|
|
15
15
|
}) | undefined) => import("remotion").EffectDescriptor<unknown>;
|
package/dist/checkerboard.d.ts
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
export declare const checkerboardSchema: {
|
|
2
2
|
readonly colors: {
|
|
3
|
-
readonly type:
|
|
3
|
+
readonly type: 'array';
|
|
4
4
|
readonly item: {
|
|
5
|
-
readonly type:
|
|
5
|
+
readonly type: 'color';
|
|
6
6
|
};
|
|
7
7
|
readonly default: readonly ["#dff4ff", "#7cc6ff"];
|
|
8
8
|
readonly minLength: 2;
|
|
9
|
-
readonly newItemDefault:
|
|
10
|
-
readonly description:
|
|
9
|
+
readonly newItemDefault: '#ff0000';
|
|
10
|
+
readonly description: 'Colors';
|
|
11
11
|
readonly keyframable: false;
|
|
12
12
|
};
|
|
13
13
|
readonly cellSize: {
|
|
14
|
-
readonly type:
|
|
14
|
+
readonly type: 'number';
|
|
15
15
|
readonly min: 0.1;
|
|
16
16
|
readonly max: 800;
|
|
17
17
|
readonly step: 0.1;
|
|
18
18
|
readonly default: 80;
|
|
19
|
-
readonly description:
|
|
19
|
+
readonly description: 'Cell size';
|
|
20
20
|
readonly hiddenFromList: false;
|
|
21
21
|
};
|
|
22
22
|
readonly gap: {
|
|
23
|
-
readonly type:
|
|
23
|
+
readonly type: 'number';
|
|
24
24
|
readonly min: 0;
|
|
25
25
|
readonly max: 400;
|
|
26
26
|
readonly step: 0.1;
|
|
27
27
|
readonly default: 0;
|
|
28
|
-
readonly description:
|
|
28
|
+
readonly description: 'Gap';
|
|
29
29
|
readonly hiddenFromList: false;
|
|
30
30
|
};
|
|
31
31
|
readonly angle: {
|
|
32
|
-
readonly type:
|
|
32
|
+
readonly type: 'rotation-degrees';
|
|
33
33
|
readonly step: 1;
|
|
34
34
|
readonly default: 0;
|
|
35
|
-
readonly description:
|
|
35
|
+
readonly description: 'Angle';
|
|
36
36
|
};
|
|
37
37
|
readonly offsetX: {
|
|
38
|
-
readonly type:
|
|
38
|
+
readonly type: 'number';
|
|
39
39
|
readonly step: 0.1;
|
|
40
40
|
readonly default: 0;
|
|
41
|
-
readonly description:
|
|
41
|
+
readonly description: 'Offset X';
|
|
42
42
|
readonly hiddenFromList: false;
|
|
43
43
|
};
|
|
44
44
|
readonly offsetY: {
|
|
45
|
-
readonly type:
|
|
45
|
+
readonly type: 'number';
|
|
46
46
|
readonly step: 0.1;
|
|
47
47
|
readonly default: 0;
|
|
48
|
-
readonly description:
|
|
48
|
+
readonly description: 'Offset Y';
|
|
49
49
|
readonly hiddenFromList: false;
|
|
50
50
|
};
|
|
51
51
|
readonly maskToSourceAlpha: {
|
|
52
|
-
readonly type:
|
|
52
|
+
readonly type: 'boolean';
|
|
53
53
|
readonly default: false;
|
|
54
|
-
readonly description:
|
|
54
|
+
readonly description: 'Mask to source alpha';
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
57
|
export type CheckerboardParams = {
|
|
@@ -71,5 +71,5 @@ export type CheckerboardParams = {
|
|
|
71
71
|
readonly maskToSourceAlpha?: boolean;
|
|
72
72
|
};
|
|
73
73
|
export declare const checkerboard: (params?: (CheckerboardParams & {
|
|
74
|
-
readonly disabled?: boolean
|
|
74
|
+
readonly disabled?: boolean;
|
|
75
75
|
}) | undefined) => import("remotion").EffectDescriptor<unknown>;
|
|
@@ -5,5 +5,5 @@ export type ChromaticAberrationParams = {
|
|
|
5
5
|
readonly angle?: number;
|
|
6
6
|
};
|
|
7
7
|
export declare const chromaticAberration: (params?: (ChromaticAberrationParams & {
|
|
8
|
-
readonly disabled?: boolean
|
|
8
|
+
readonly disabled?: boolean;
|
|
9
9
|
}) | undefined) => import("remotion").EffectDescriptor<unknown>;
|
|
@@ -23,5 +23,5 @@ export type ColorCorrectionParams = {
|
|
|
23
23
|
readonly vibrance?: number;
|
|
24
24
|
};
|
|
25
25
|
export declare const colorCorrection: (params?: (ColorCorrectionParams & {
|
|
26
|
-
readonly disabled?: boolean
|
|
26
|
+
readonly disabled?: boolean;
|
|
27
27
|
}) | undefined) => import("remotion").EffectDescriptor<unknown>;
|
package/dist/color-key.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
export declare const colorKeySchema: {
|
|
2
2
|
readonly keyColor: {
|
|
3
|
-
readonly type:
|
|
3
|
+
readonly type: 'color';
|
|
4
4
|
readonly default: "#00ff00";
|
|
5
|
-
readonly description:
|
|
5
|
+
readonly description: 'Key color';
|
|
6
6
|
};
|
|
7
7
|
readonly similarity: {
|
|
8
|
-
readonly type:
|
|
8
|
+
readonly type: 'number';
|
|
9
9
|
readonly min: 0;
|
|
10
10
|
readonly max: 1;
|
|
11
11
|
readonly step: 0.01;
|
|
12
12
|
readonly default: 0.18;
|
|
13
|
-
readonly description:
|
|
13
|
+
readonly description: 'Similarity';
|
|
14
14
|
readonly hiddenFromList: false;
|
|
15
15
|
};
|
|
16
16
|
readonly smoothness: {
|
|
17
|
-
readonly type:
|
|
17
|
+
readonly type: 'number';
|
|
18
18
|
readonly min: 0;
|
|
19
19
|
readonly max: 1;
|
|
20
20
|
readonly step: 0.01;
|
|
21
21
|
readonly default: 0.08;
|
|
22
|
-
readonly description:
|
|
22
|
+
readonly description: 'Smoothness';
|
|
23
23
|
readonly hiddenFromList: false;
|
|
24
24
|
};
|
|
25
25
|
readonly spillSuppression: {
|
|
26
|
-
readonly type:
|
|
26
|
+
readonly type: 'number';
|
|
27
27
|
readonly min: 0;
|
|
28
28
|
readonly max: 1;
|
|
29
29
|
readonly step: 0.01;
|
|
30
30
|
readonly default: 0.25;
|
|
31
|
-
readonly description:
|
|
31
|
+
readonly description: 'Spill suppression';
|
|
32
32
|
readonly hiddenFromList: false;
|
|
33
33
|
};
|
|
34
34
|
};
|
|
@@ -43,5 +43,5 @@ export type ColorKeyParams = {
|
|
|
43
43
|
readonly spillSuppression?: number;
|
|
44
44
|
};
|
|
45
45
|
export declare const colorKey: (params?: (ColorKeyParams & {
|
|
46
|
-
readonly disabled?: boolean
|
|
46
|
+
readonly disabled?: boolean;
|
|
47
47
|
}) | undefined) => import("remotion").EffectDescriptor<unknown>;
|
package/dist/color-utils.d.ts
CHANGED
|
@@ -2,36 +2,36 @@ export declare const DEFAULT_AMOUNT: 1;
|
|
|
2
2
|
export declare const DEFAULT_BRIGHTNESS_AMOUNT: 0;
|
|
3
3
|
export declare const DEFAULT_HUE_DEGREES: 0;
|
|
4
4
|
export declare const colorAmountSchema: {
|
|
5
|
-
readonly type:
|
|
5
|
+
readonly type: 'number';
|
|
6
6
|
readonly min: 0;
|
|
7
7
|
readonly max: 1;
|
|
8
8
|
readonly step: 0.01;
|
|
9
9
|
readonly default: 1;
|
|
10
|
-
readonly description:
|
|
10
|
+
readonly description: 'Amount';
|
|
11
11
|
readonly hiddenFromList: false;
|
|
12
12
|
};
|
|
13
13
|
export declare const colorMultiplierSchema: {
|
|
14
|
-
readonly type:
|
|
14
|
+
readonly type: 'number';
|
|
15
15
|
readonly min: 0;
|
|
16
16
|
readonly step: 0.01;
|
|
17
17
|
readonly default: 1;
|
|
18
|
-
readonly description:
|
|
18
|
+
readonly description: 'Amount';
|
|
19
19
|
readonly hiddenFromList: false;
|
|
20
20
|
};
|
|
21
21
|
export declare const brightnessAmountSchema: {
|
|
22
|
-
readonly type:
|
|
22
|
+
readonly type: 'number';
|
|
23
23
|
readonly min: -1;
|
|
24
24
|
readonly max: 1;
|
|
25
25
|
readonly step: 0.01;
|
|
26
26
|
readonly default: 0;
|
|
27
|
-
readonly description:
|
|
27
|
+
readonly description: 'Amount';
|
|
28
28
|
readonly hiddenFromList: false;
|
|
29
29
|
};
|
|
30
30
|
export declare const hueDegreesSchema: {
|
|
31
|
-
readonly type:
|
|
31
|
+
readonly type: 'rotation-degrees';
|
|
32
32
|
readonly step: 1;
|
|
33
33
|
readonly default: 0;
|
|
34
|
-
readonly description:
|
|
34
|
+
readonly description: 'Degrees';
|
|
35
35
|
};
|
|
36
36
|
export declare const assertOptionalFiniteNumber: (value: unknown, name: string) => void;
|
|
37
37
|
export declare const validateUnitInterval: (value: number, name: string) => void;
|
package/dist/contour-lines.d.ts
CHANGED
|
@@ -1,88 +1,88 @@
|
|
|
1
1
|
export declare const contourLinesSchema: {
|
|
2
2
|
readonly lineColor: {
|
|
3
|
-
readonly type:
|
|
3
|
+
readonly type: 'color';
|
|
4
4
|
readonly default: "#ffffff";
|
|
5
|
-
readonly description:
|
|
5
|
+
readonly description: 'Line color';
|
|
6
6
|
};
|
|
7
7
|
readonly lineWidth: {
|
|
8
|
-
readonly type:
|
|
8
|
+
readonly type: 'number';
|
|
9
9
|
readonly min: 0.1;
|
|
10
10
|
readonly max: 20;
|
|
11
11
|
readonly step: 0.1;
|
|
12
12
|
readonly default: 1.5;
|
|
13
|
-
readonly description:
|
|
13
|
+
readonly description: 'Line width';
|
|
14
14
|
readonly hiddenFromList: false;
|
|
15
15
|
};
|
|
16
16
|
readonly spacing: {
|
|
17
|
-
readonly type:
|
|
17
|
+
readonly type: 'number';
|
|
18
18
|
readonly min: 1;
|
|
19
19
|
readonly max: 200;
|
|
20
20
|
readonly step: 1;
|
|
21
21
|
readonly default: 36;
|
|
22
|
-
readonly description:
|
|
22
|
+
readonly description: 'Spacing';
|
|
23
23
|
readonly hiddenFromList: false;
|
|
24
24
|
};
|
|
25
25
|
readonly scale: {
|
|
26
|
-
readonly type:
|
|
26
|
+
readonly type: 'number';
|
|
27
27
|
readonly min: 20;
|
|
28
28
|
readonly max: 1000;
|
|
29
29
|
readonly step: 1;
|
|
30
30
|
readonly default: 220;
|
|
31
|
-
readonly description:
|
|
31
|
+
readonly description: 'Scale';
|
|
32
32
|
readonly hiddenFromList: false;
|
|
33
33
|
};
|
|
34
34
|
readonly complexity: {
|
|
35
|
-
readonly type:
|
|
35
|
+
readonly type: 'number';
|
|
36
36
|
readonly min: 0;
|
|
37
37
|
readonly max: 1;
|
|
38
38
|
readonly step: 0.01;
|
|
39
39
|
readonly default: 0.65;
|
|
40
|
-
readonly description:
|
|
40
|
+
readonly description: 'Complexity';
|
|
41
41
|
readonly hiddenFromList: false;
|
|
42
42
|
};
|
|
43
43
|
readonly smoothness: {
|
|
44
|
-
readonly type:
|
|
44
|
+
readonly type: 'number';
|
|
45
45
|
readonly min: 0;
|
|
46
46
|
readonly max: 1;
|
|
47
47
|
readonly step: 0.01;
|
|
48
48
|
readonly default: 0.55;
|
|
49
|
-
readonly description:
|
|
49
|
+
readonly description: 'Smoothness';
|
|
50
50
|
readonly hiddenFromList: false;
|
|
51
51
|
};
|
|
52
52
|
readonly seed: {
|
|
53
|
-
readonly type:
|
|
53
|
+
readonly type: 'number';
|
|
54
54
|
readonly step: 1;
|
|
55
55
|
readonly default: 0;
|
|
56
|
-
readonly description:
|
|
56
|
+
readonly description: 'Seed';
|
|
57
57
|
readonly hiddenFromList: false;
|
|
58
58
|
};
|
|
59
59
|
readonly offsetX: {
|
|
60
|
-
readonly type:
|
|
60
|
+
readonly type: 'number';
|
|
61
61
|
readonly step: 0.1;
|
|
62
62
|
readonly default: 0;
|
|
63
|
-
readonly description:
|
|
63
|
+
readonly description: 'Offset X';
|
|
64
64
|
readonly hiddenFromList: false;
|
|
65
65
|
};
|
|
66
66
|
readonly offsetY: {
|
|
67
|
-
readonly type:
|
|
67
|
+
readonly type: 'number';
|
|
68
68
|
readonly step: 0.1;
|
|
69
69
|
readonly default: 0;
|
|
70
|
-
readonly description:
|
|
70
|
+
readonly description: 'Offset Y';
|
|
71
71
|
readonly hiddenFromList: false;
|
|
72
72
|
};
|
|
73
73
|
readonly opacity: {
|
|
74
|
-
readonly type:
|
|
74
|
+
readonly type: 'number';
|
|
75
75
|
readonly min: 0;
|
|
76
76
|
readonly max: 1;
|
|
77
77
|
readonly step: 0.01;
|
|
78
78
|
readonly default: 1;
|
|
79
|
-
readonly description:
|
|
79
|
+
readonly description: 'Opacity';
|
|
80
80
|
readonly hiddenFromList: false;
|
|
81
81
|
};
|
|
82
82
|
readonly maskToSourceAlpha: {
|
|
83
|
-
readonly type:
|
|
83
|
+
readonly type: 'boolean';
|
|
84
84
|
readonly default: false;
|
|
85
|
-
readonly description:
|
|
85
|
+
readonly description: 'Mask to source alpha';
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
88
|
export type ContourLinesParams = {
|
|
@@ -110,5 +110,5 @@ export type ContourLinesParams = {
|
|
|
110
110
|
readonly maskToSourceAlpha?: boolean;
|
|
111
111
|
};
|
|
112
112
|
export declare const contourLines: (params?: (ContourLinesParams & {
|
|
113
|
-
readonly disabled?: boolean
|
|
113
|
+
readonly disabled?: boolean;
|
|
114
114
|
}) | undefined) => import("remotion").EffectDescriptor<unknown>;
|
package/dist/contrast.d.ts
CHANGED
|
@@ -10,5 +10,5 @@ export type CornerPinParams = {
|
|
|
10
10
|
readonly bottomLeft?: CornerPinUvCoordinate;
|
|
11
11
|
};
|
|
12
12
|
export declare const cornerPin: (params?: (CornerPinParams & {
|
|
13
|
-
readonly disabled?: boolean
|
|
13
|
+
readonly disabled?: boolean;
|
|
14
14
|
}) | undefined) => import("remotion").EffectDescriptor<unknown>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type CylinderRender = 'both' | 'front' | 'back';
|
|
2
|
+
export type CylinderParams = {
|
|
3
|
+
/** Cylinder radius in pixels. Defaults to 250. */
|
|
4
|
+
readonly radius?: number;
|
|
5
|
+
/** Texture rotation around the cylinder, in degrees. Defaults to 0. */
|
|
6
|
+
readonly rotation?: number;
|
|
7
|
+
/** Cylinder orientation in degrees, applied in X, Y, Z order. */
|
|
8
|
+
readonly rotationX?: number;
|
|
9
|
+
readonly rotationY?: number;
|
|
10
|
+
readonly rotationZ?: number;
|
|
11
|
+
/** Center as fractions of the canvas width and height. Defaults to [0.5, 0.5]. */
|
|
12
|
+
readonly position?: readonly [number, number];
|
|
13
|
+
/** Which faces to show. Defaults to 'both'. */
|
|
14
|
+
readonly render?: CylinderRender;
|
|
15
|
+
/** Darkening at the silhouette, from 0 to 1. Defaults to 0.35. */
|
|
16
|
+
readonly shading?: number;
|
|
17
|
+
};
|
|
18
|
+
export declare const cylinder: (params?: (CylinderParams & {
|
|
19
|
+
readonly disabled?: boolean;
|
|
20
|
+
}) | undefined) => import("remotion").EffectDescriptor<unknown>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CYLINDER_SHADER = "\nstruct Params {\n resolution: vec2f,\n center: vec2f,\n radius: f32,\n spin: f32,\n shading: f32,\n faces: f32,\n rotation: vec4f,\n}\n@group(0) @binding(0) var source: texture_2d<f32>;\n@group(0) @binding(1) var sourceSampler: sampler;\n@group(0) @binding(2) var<uniform> params: Params;\n\n@vertex fn vertex(@builtin(vertex_index) index: u32) -> @builtin(position) vec4f {\n let positions = array<vec2f, 3>(vec2f(-1, -1), vec2f(3, -1), vec2f(-1, 3));\n return vec4f(positions[index], 0, 1);\n}\n\nfn sampleFace(point: vec3f, inverse: mat3x3f, rotation: mat3x3f) -> vec4f {\n let local = inverse * point;\n let uv = vec2f(fract((atan2(local.x, local.z) + params.spin) / 6.28318530718 + 0.5), local.y / params.resolution.y + 0.5);\n let color = textureSampleLevel(source, sourceSampler, uv, 0);\n if (uv.y < 0 || uv.y > 1) { return vec4f(0); }\n let normal = rotation * vec3f(local.x / params.radius, 0, local.z / params.radius);\n let shade = mix(1.0, abs(normal.z), params.shading);\n return vec4f(color.rgb * shade, color.a);\n}\n\n@fragment fn fragment(@builtin(position) position: vec4f) -> @location(0) vec4f {\n let s = sin(params.rotation.xyz);\n let c = cos(params.rotation.xyz);\n let rx = mat3x3f(vec3f(1, 0, 0), vec3f(0, c.x, s.x), vec3f(0, -s.x, c.x));\n let ry = mat3x3f(vec3f(c.y, 0, -s.y), vec3f(0, 1, 0), vec3f(s.y, 0, c.y));\n let rz = mat3x3f(vec3f(c.z, s.z, 0), vec3f(-s.z, c.z, 0), vec3f(0, 0, 1));\n let rotation = rz * ry * rx;\n let axis = rotation[1];\n let p = position.xy - params.center;\n // Orthographic viewing ray intersecting the rotated, open cylinder wall.\n let a = 1.0 - axis.z * axis.z;\n let da = dot(p, axis.xy);\n let b = -da * axis.z;\n let discriminant = b * b - a * (dot(p, p) - da * da - params.radius * params.radius);\n if (a < 0.000001 || discriminant <= 0) { return vec4f(0); }\n let root = sqrt(discriminant);\n let inverse = transpose(rotation);\n let front = sampleFace(vec3f(p, (-b + root) / a), inverse, rotation);\n let back = sampleFace(vec3f(p, (-b - root) / a), inverse, rotation);\n if (params.faces == 1) { return front; }\n if (params.faces == 2) { return back; }\n // Both the texture and output use premultiplied alpha.\n return front + back * (1.0 - front.a);\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { cylinder, type CylinderParams, type CylinderRender, } from './cylinder/index.js';
|
package/dist/dot-grid.d.ts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
export declare const dotGridSchema: {
|
|
2
2
|
readonly dotSize: {
|
|
3
|
-
readonly type:
|
|
3
|
+
readonly type: 'number';
|
|
4
4
|
readonly min: 0;
|
|
5
5
|
readonly max: 400;
|
|
6
6
|
readonly step: 1;
|
|
7
7
|
readonly default: 16;
|
|
8
|
-
readonly description:
|
|
8
|
+
readonly description: 'Dot size';
|
|
9
9
|
readonly hiddenFromList: false;
|
|
10
10
|
};
|
|
11
11
|
readonly gridSize: {
|
|
12
|
-
readonly type:
|
|
12
|
+
readonly type: 'number';
|
|
13
13
|
readonly min: 1;
|
|
14
14
|
readonly max: 400;
|
|
15
15
|
readonly step: 1;
|
|
16
16
|
readonly default: 20;
|
|
17
|
-
readonly description:
|
|
17
|
+
readonly description: 'Grid size';
|
|
18
18
|
readonly hiddenFromList: false;
|
|
19
19
|
};
|
|
20
20
|
readonly invert: {
|
|
21
|
-
readonly type:
|
|
21
|
+
readonly type: 'boolean';
|
|
22
22
|
readonly default: false;
|
|
23
|
-
readonly description:
|
|
23
|
+
readonly description: 'Invert';
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
export type DotGridParams = {
|
|
@@ -29,5 +29,5 @@ export type DotGridParams = {
|
|
|
29
29
|
readonly invert?: boolean;
|
|
30
30
|
};
|
|
31
31
|
export declare const dotGrid: (params?: (DotGridParams & {
|
|
32
|
-
readonly disabled?: boolean
|
|
32
|
+
readonly disabled?: boolean;
|
|
33
33
|
}) | undefined) => import("remotion").EffectDescriptor<unknown>;
|
|
@@ -11,5 +11,5 @@ export type DropShadowParams = {
|
|
|
11
11
|
readonly color?: string;
|
|
12
12
|
};
|
|
13
13
|
export declare const dropShadow: (params?: (DropShadowParams & {
|
|
14
|
-
readonly disabled?: boolean
|
|
14
|
+
readonly disabled?: boolean;
|
|
15
15
|
}) | undefined) => import("remotion").EffectDescriptor<unknown>;
|
package/dist/duotone.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
export declare const duotoneSchema: {
|
|
2
2
|
readonly darkColor: {
|
|
3
|
-
readonly type:
|
|
3
|
+
readonly type: 'color';
|
|
4
4
|
readonly default: "#000000";
|
|
5
|
-
readonly description:
|
|
5
|
+
readonly description: 'Dark color';
|
|
6
6
|
};
|
|
7
7
|
readonly lightColor: {
|
|
8
|
-
readonly type:
|
|
8
|
+
readonly type: 'color';
|
|
9
9
|
readonly default: "#ffffff";
|
|
10
|
-
readonly description:
|
|
10
|
+
readonly description: 'Light color';
|
|
11
11
|
};
|
|
12
12
|
readonly threshold: {
|
|
13
|
-
readonly type:
|
|
13
|
+
readonly type: 'number';
|
|
14
14
|
readonly min: 0;
|
|
15
15
|
readonly max: 1;
|
|
16
16
|
readonly step: 0.01;
|
|
17
17
|
readonly default: 0.5;
|
|
18
|
-
readonly description:
|
|
18
|
+
readonly description: 'Luminance threshold';
|
|
19
19
|
readonly hiddenFromList: false;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
@@ -28,5 +28,5 @@ export type DuotoneParams = {
|
|
|
28
28
|
readonly threshold?: number;
|
|
29
29
|
};
|
|
30
30
|
export declare const duotone: (params?: (DuotoneParams & {
|
|
31
|
-
readonly disabled?: boolean
|
|
31
|
+
readonly disabled?: boolean;
|
|
32
32
|
}) | undefined) => import("remotion").EffectDescriptor<unknown>;
|
package/dist/emboss.d.ts
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
export declare const embossSchema: {
|
|
2
2
|
readonly amount: {
|
|
3
|
-
readonly type:
|
|
3
|
+
readonly type: 'number';
|
|
4
4
|
readonly min: 0;
|
|
5
5
|
readonly max: 1;
|
|
6
6
|
readonly step: 0.01;
|
|
7
7
|
readonly default: 0.7;
|
|
8
|
-
readonly description:
|
|
8
|
+
readonly description: 'Amount';
|
|
9
9
|
readonly hiddenFromList: false;
|
|
10
10
|
};
|
|
11
11
|
readonly size: {
|
|
12
|
-
readonly type:
|
|
12
|
+
readonly type: 'number';
|
|
13
13
|
readonly min: 1;
|
|
14
14
|
readonly max: 200;
|
|
15
15
|
readonly step: 1;
|
|
16
16
|
readonly default: 26;
|
|
17
|
-
readonly description:
|
|
17
|
+
readonly description: 'Size';
|
|
18
18
|
readonly hiddenFromList: false;
|
|
19
19
|
};
|
|
20
20
|
readonly lineWidth: {
|
|
21
|
-
readonly type:
|
|
21
|
+
readonly type: 'number';
|
|
22
22
|
readonly min: 0.1;
|
|
23
23
|
readonly max: 100;
|
|
24
24
|
readonly step: 0.1;
|
|
25
25
|
readonly default: 7;
|
|
26
|
-
readonly description:
|
|
26
|
+
readonly description: 'Line width';
|
|
27
27
|
readonly hiddenFromList: false;
|
|
28
28
|
};
|
|
29
29
|
readonly depth: {
|
|
30
|
-
readonly type:
|
|
30
|
+
readonly type: 'number';
|
|
31
31
|
readonly min: 0;
|
|
32
32
|
readonly max: 1;
|
|
33
33
|
readonly step: 0.01;
|
|
34
34
|
readonly default: 0.75;
|
|
35
|
-
readonly description:
|
|
35
|
+
readonly description: 'Depth';
|
|
36
36
|
readonly hiddenFromList: false;
|
|
37
37
|
};
|
|
38
38
|
readonly angle: {
|
|
39
|
-
readonly type:
|
|
39
|
+
readonly type: 'rotation-degrees';
|
|
40
40
|
readonly step: 1;
|
|
41
41
|
readonly default: 0;
|
|
42
|
-
readonly description:
|
|
42
|
+
readonly description: 'Angle';
|
|
43
43
|
};
|
|
44
44
|
readonly lightAngle: {
|
|
45
|
-
readonly type:
|
|
45
|
+
readonly type: 'rotation-degrees';
|
|
46
46
|
readonly step: 1;
|
|
47
47
|
readonly default: 135;
|
|
48
|
-
readonly description:
|
|
48
|
+
readonly description: 'Light angle';
|
|
49
49
|
};
|
|
50
50
|
readonly offset: {
|
|
51
|
-
readonly type:
|
|
51
|
+
readonly type: 'number';
|
|
52
52
|
readonly step: 0.1;
|
|
53
53
|
readonly default: 0;
|
|
54
|
-
readonly description:
|
|
54
|
+
readonly description: 'Offset';
|
|
55
55
|
readonly hiddenFromList: false;
|
|
56
56
|
};
|
|
57
57
|
};
|
|
@@ -72,5 +72,5 @@ export type EmbossParams = {
|
|
|
72
72
|
readonly offset?: number;
|
|
73
73
|
};
|
|
74
74
|
export declare const emboss: (params?: (EmbossParams & {
|
|
75
|
-
readonly disabled?: boolean
|
|
75
|
+
readonly disabled?: boolean;
|
|
76
76
|
}) | undefined) => import("remotion").EffectDescriptor<unknown>;
|