Skip to content

🎥 Make videos programmatically with React

`@remotion/effects`: Add `pixelate()` effect (#8499)

aryansingh1718fd0c8d7aeece
diff --git a/packages/docs/components/effects-demos/registry.ts b/packages/docs/components/effects-demos/registry.ts
index a839309772..fa828202f5 100644
--- a/packages/docs/components/effects-demos/registry.ts
+++ b/packages/docs/components/effects-demos/registry.ts
@@ -14,6 +14,7 @@ import {fisheye} from '@remotion/effects/fisheye';
import {glow} from '@remotion/effects/glow';
import {grayscale} from '@remotion/effects/grayscale';
import {halftone} from '@remotion/effects/halftone';
+import {pixelate} from '@remotion/effects/pixelate';
import {halftoneLinearGradient} from '@remotion/effects/halftone-linear-gradient';
import {hue} from '@remotion/effects/hue';
import {invert} from '@remotion/effects/invert';
@@ -58,6 +59,7 @@ import {EffectsGlowPreview} from '../effects/effects-glow-preview';
import {EffectsGrayscalePreview} from '../effects/effects-grayscale-preview';
import {EffectsHalftoneLinearGradientPreview} from '../effects/effects-halftone-linear-gradient-preview';
import {EffectsHalftonePreview} from '../effects/effects-halftone-preview';
+import {EffectsPixelatePreview} from '../effects/effects-pixelate-preview';
import {EffectsHuePreview} from '../effects/effects-hue-preview';
import {EffectsInvertPreview} from '../effects/effects-invert-preview';
import {EffectsLightLeakPreview} from '../effects/effects-light-leak-preview';
@@ -433,6 +435,14 @@ export const effectsDemos: EffectsDemoType[] = [
comp: EffectsHalftonePreview,
schema: halftone().definition.schema,
},
+ {
+ ...defaults,
+ id: 'effects-pixelate',
+ effectName: 'pixelate',
+ effectImportPath: '@remotion/effects/pixelate',
+ comp: EffectsPixelatePreview,
+ schema: pixelate().definition.schema,
+ },
{
...defaults,
id: 'effects-pixel-dissolve',
diff --git a/packages/docs/components/effects/effects-pixelate-preview.tsx b/packages/docs/components/effects/effects-pixelate-preview.tsx
new file mode 100644
index 0000000000..868fc77320
--- /dev/null
+++ b/packages/docs/components/effects/effects-pixelate-preview.tsx
@@ -0,0 +1,23 @@
+import {pixelate} from '@remotion/effects/pixelate';
+import React from 'react';
+import {CanvasImage} from 'remotion';
+import {EFFECTS_PREVIEW_IMAGE_SRC} from './effects-preview-image';
+
+export const EffectsPixelatePreview: React.FC<{
+ readonly blockSize: number;
+}> = ({blockSize}) => {
+
+ return (
+ <CanvasImage
+ src={EFFECTS_PREVIEW_IMAGE_SRC}
+ width={1280}
+ height={720}
+ fit="cover"
+ effects={[
+ pixelate({
+ blockSize,
+ }),
+ ]}
+ />
+ );
+};
diff --git a/packages/docs/docs/effects/pixelate.mdx b/packages/docs/docs/effects/pixelate.mdx
new file mode 100644
index 0000000000..86da35ebe2
--- /dev/null
+++ b/packages/docs/docs/effects/pixelate.mdx
@@ -0,0 +1,65 @@
+---
+image: /generated/articles-docs-effects-pixelate.png
+slug: /effects/pixelate
+title: pixelate()
+sidebar_label: pixelate()
+crumb: '@remotion/effects'
+---
+
+# pixelate()<AvailableFrom v="4.0.479" />
+
+_Part of the [`@remotion/effects`](/docs/effects/api) package._
+
+A pixelate effect that divides the image into rectangular blocks, making each block a single solid color sampled from the source. Works on canvas-based components such as [`<Video>`](/docs/media/video), [`<HtmlInCanvas>`](/docs/remotion/html-in-canvas) and [`<Solid>`](/docs/solid).
+
+Use it when you want a mosaic or censored look while still controlling effect order through the `effects` array.
+
+## Preview
+
+<EffectsDemo type="effects-pixelate" />
+
+## Example
+
+```tsx twoslash title="MyComp.tsx"
+import {AbsoluteFill} from 'remotion';
+import {Video} from '@remotion/media';
+import {pixelate} from '@remotion/effects/pixelate';
+
+export const MyComp: React.FC = () => {
+ return (
+ <AbsoluteFill>
+ <Video
+ src="https://remotion.media/video.mp4"
+ effects={[
+ pixelate({
+ blockSize:20,
+ }),
+ ]}
+ />
+ </AbsoluteFill>
+ );
+};
+```
+
+## API
+
+Pass an object with the following properties. You can also call `pixelate()` without arguments.
+
+### `blockSize?`
+
+Size of each pixel block in pixels. Defaults to `20`. Must be at least `1`.
+
+### `disabled?`
+
+When `true`, the effect is skipped. Defaults to `false`.
+
+## Requirements
+
+`pixelate()` uses a WebGL2 backend. During renders, enable WebGL via [`Config.setChromiumOpenGlRenderer('angle')`](/docs/config#setchromiumopenglrenderer). See [Using WebGL during renders](/docs/remotion/html-in-canvas#using-webgl-during-renders).
+
+## See also
+
+- [`@remotion/effects`](/docs/effects/api)
+- [`grayscale()`](/docs/effects/grayscale)
+- [HTML-in-canvas guide](/docs/html-in-canvas)
+- [Source code for this effect](https://github.com/remotion-dev/remotion/blob/main/packages/effects/src/pixelate.ts)
diff --git a/packages/docs/docs/effects/table-of-contents.tsx b/packages/docs/docs/effects/table-of-contents.tsx
index fb83c57a7b..54bc0c76b5 100644
--- a/packages/docs/docs/effects/table-of-contents.tsx
+++ b/packages/docs/docs/effects/table-of-contents.tsx
@@ -251,6 +251,13 @@ const categories: {
name: 'pixelDissolve()',
description: 'Pixelated dissolve effect',
},
+ {
+ link:'/docs/effects/pixelate',
+ preview: '/img/effects-pixelate-preview.png',
+ alt: 'pixelate effect preview',
+ name: 'pixelate()',
+ description: 'Pixelation effect',
+ },
{
link: '/docs/effects/scanlines',
preview: '/img/effects-scanlines-preview.png',
diff --git a/packages/docs/sidebars.ts b/packages/docs/sidebars.ts
index 0f20031bc2..93d35170a7 100644
--- a/packages/docs/sidebars.ts
+++ b/packages/docs/sidebars.ts
@@ -296,6 +296,7 @@ const sidebars: SidebarsConfig = {
'effects/noise-displacement',
'effects/pattern',
'effects/pixel-dissolve',
+ 'effects/pixelate',
'effects/rings',
'effects/saturation',
'effects/scale',
diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.ts
index 6dc5afe212..2681671854 100644
--- a/packages/docs/src/data/articles.ts
+++ b/packages/docs/src/data/articles.ts
@@ -1970,6 +1970,15 @@ export const articles = [
noAi: false,
slug: 'effects/pixel-dissolve',
},
+ {
+ id: 'effects/pixelate',
+ title: 'pixelate()',
+ relativePath: 'docs/effects/pixelate.mdx',
+ compId: 'articles-docs-effects-pixelate',
+ crumb: '@remotion/effects',
+ noAi: false,
+ slug: 'effects/pixelate',
+ },
{
id: 'effects/rings',
title: 'rings()',
@@ -6069,6 +6078,15 @@ export const articles = [
noAi: false,
slug: 'shapes/arrow',
},
+ {
+ id: 'shapes/callout',
+ title: '<Callout />',
+ relativePath: 'docs/shapes/callout.mdx',
+ compId: 'articles-docs-shapes-callout',
+ crumb: '@remotion/shapes',
+ noAi: false,
+ slug: 'shapes/callout',
+ },
{
id: 'shapes/circle',
title: '<Circle />',
@@ -6114,6 +6132,15 @@ export const articles = [
noAi: false,
slug: 'shapes/make-arrow',
},
+ {
+ id: 'shapes/make-callout',
+ title: 'makeCallout()',
+ relativePath: 'docs/shapes/make-callout.mdx',
+ compId: 'articles-docs-shapes-make-callout',
+ crumb: '@remotion/shapes',
+ noAi: false,
+ slug: 'shapes/make-callout',
+ },
{
id: 'shapes/make-circle',
title: 'makeCircle()',
diff --git a/packages/docs/src/remotion/Root.tsx b/packages/docs/src/remotion/Root.tsx
index c2293e7f63..4b7c2b70ec 100644
--- a/packages/docs/src/remotion/Root.tsx
+++ b/packages/docs/src/remotion/Root.tsx
@@ -33,6 +33,7 @@ import {
import {EffectsNoisePreview} from '../../components/effects/effects-noise-preview';
import {EffectsPatternPreview} from '../../components/effects/effects-pattern-preview';
import {EffectsPixelDissolvePreview} from '../../components/effects/effects-pixel-dissolve-preview';
+import {EffectsPixelatePreview} from '../../components/effects/effects-pixelate-preview';
import {EffectsRingsPreview} from '../../components/effects/effects-rings-preview';
import {EffectsSaturationPreview} from '../../components/effects/effects-saturation-preview';
import {EffectsScalePreview} from '../../components/effects/effects-scale-preview';
@@ -351,6 +352,15 @@ export const RemotionRoot: React.FC = () => {
invert: false,
}}
/>
+ <Still
+ id="effects-pixelate-preview"
+ component={EffectsPixelatePreview}
+ width={1280}
+ height={720}
+ defaultProps={{
+ blockSize: 10,
+ }}
+ />
<Still
id="effects-pixel-dissolve-preview"
component={EffectsPixelDissolvePreview}
diff --git a/packages/docs/static/generated/articles-docs-effects-pixelate.png b/packages/docs/static/generated/articles-docs-effects-pixelate.png
new file mode 100644
index 0000000000..10b37dde59
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-effects-pixelate.png differ
diff --git a/packages/docs/static/img/effects-pixelate-preview.png b/packages/docs/static/img/effects-pixelate-preview.png
new file mode 100644
index 0000000000..98544d4276
Binary files /dev/null and b/packages/docs/static/img/effects-pixelate-preview.png differ
diff --git a/packages/effects/bundle.ts b/packages/effects/bundle.ts
index 290a6b41c7..601d0ac98e 100644
--- a/packages/effects/bundle.ts
+++ b/packages/effects/bundle.ts
@@ -26,6 +26,7 @@ const effectEntrypoints = [
'src/hue.ts',
'src/dot-grid.ts',
'src/pixel-dissolve.ts',
+ 'src/pixelate.ts',
'src/invert.ts',
'src/lines.ts',
'src/linear-progressive-blur.ts',
diff --git a/packages/effects/package.json b/packages/effects/package.json
index 2238c67e98..07f7561e0e 100644
--- a/packages/effects/package.json
+++ b/packages/effects/package.json
@@ -114,6 +114,11 @@
"module": "./dist/esm/pixel-dissolve.mjs",
"import": "./dist/esm/pixel-dissolve.mjs"
},
+ "./pixelate": {
+ "types": "./dist/pixelate.d.ts",
+ "module": "./dist/esm/pixelate.mjs",
+ "import": "./dist/esm/pixelate.mjs"
+ },
"./grayscale": {
"types": "./dist/grayscale.d.ts",
"module": "./dist/esm/grayscale.mjs",
@@ -291,6 +296,9 @@
"pixel-dissolve": [
"dist/pixel-dissolve.d.ts"
],
+ "pixelate": [
+ "dist/pixelate.d.ts"
+ ],
"grayscale": [
"dist/grayscale.d.ts"
],
diff --git a/packages/effects/src/pixelate.ts b/packages/effects/src/pixelate.ts
new file mode 100644
index 0000000000..c3cf676f28
--- /dev/null
+++ b/packages/effects/src/pixelate.ts
@@ -0,0 +1,245 @@
+import {Internals, type SequenceSchema} from 'remotion';
+import {assertOptionalFiniteNumber} from './color-utils.js';
+import {assertEffectParamsObject} from './validate-effect-param.js';
+
+const {createEffect, createWebGL2ContextError} = Internals;
+
+const DEFAULT_BLOCK_SIZE = 20 as const;
+
+const pixelateSchema = {
+ blockSize: {
+ type: 'number',
+ min: 1,
+ max: 200,
+ step: 1,
+ default: DEFAULT_BLOCK_SIZE,
+ description: 'Block size',
+ hiddenFromList: false,
+ },
+} as const satisfies SequenceSchema;
+
+export type PixelateParams = {
+ readonly blockSize?: number;
+};
+
+type PixelateResolved = {
+ blockSize: number;
+};
+
+const resolve = (p: PixelateParams): PixelateResolved => ({
+ blockSize: p.blockSize ?? DEFAULT_BLOCK_SIZE,
+});
+
+const validatePixelateParams = (params: PixelateParams): void => {
+ assertEffectParamsObject(params, 'Pixelate');
+ assertOptionalFiniteNumber(params.blockSize, 'blockSize');
+ if ((params.blockSize ?? DEFAULT_BLOCK_SIZE) < 1) {
+ throw new Error('"blockSize" must be >= 1');
+ }
+};
+
+type PixelateState = {
+ readonly gl: WebGL2RenderingContext;
+ readonly program: WebGLProgram;
+ readonly vao: WebGLVertexArrayObject;
+ readonly vbo: WebGLBuffer;
+ readonly texture: WebGLTexture;
+ readonly uSource: WebGLUniformLocation | null;
+ readonly uBlockSize: WebGLUniformLocation | null;
+ readonly uResolution: WebGLUniformLocation | null;
+};
+
+const VERTEX_SHADER = /* glsl */ `#version 300 es
+
+in vec2 aPos;
+in vec2 aUv;
+out vec2 vUv;
+
+void main() {
+ vUv = aUv;
+ gl_Position = vec4(aPos, 0.0, 1.0);
+}
+`;
+
+const FRAGMENT_SHADER = /* glsl */ `#version 300 es
+precision highp float;
+
+in vec2 vUv;
+out vec4 fragColor;
+uniform sampler2D uSource;
+uniform float uBlockSize;
+uniform vec2 uResolution;
+
+void main() {
+ vec2 pixelSizeUv = vec2(uBlockSize) / uResolution;
+ vec2 blockUv = floor(vUv / pixelSizeUv) * pixelSizeUv + pixelSizeUv * 0.5;
+ fragColor = texture(uSource, blockUv);
+}
+`;
+
+const compileShader = (
+ gl: WebGL2RenderingContext,
+ type: number,
+ source: string,
+): WebGLShader => {
+ const shader = gl.createShader(type);
+ if (!shader) {
+ throw new Error('Failed to create WebGL shader');
+ }
+
+ gl.shaderSource(shader, source);
+ gl.compileShader(shader);
+ if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) {
+ const log = gl.getShaderInfoLog(shader);
+ gl.deleteShader(shader);
+ throw new Error(`Pixelate shader compile failed: ${log ?? '(no log)'}`);
+ }
+
+ return shader;
+};
+
+const linkProgram = (
+ gl: WebGL2RenderingContext,
+ vs: WebGLShader,
+ fs: WebGLShader,
+): WebGLProgram => {
+ const program = gl.createProgram();
+ if (!program) {
+ throw new Error('Failed to create WebGL program');
+ }
+
+ gl.attachShader(program, vs);
+ gl.attachShader(program, fs);
+ gl.linkProgram(program);
+ if (!gl.getProgramParameter(program, gl.LINK_STATUS)) {
+ const log = gl.getProgramInfoLog(program);
+ gl.deleteProgram(program);
+ throw new Error(`Pixelate program link failed: ${log ?? '(no log)'}`);
+ }
+
+ return program;
+};
+
+const createPixelateState = (gl: WebGL2RenderingContext): PixelateState => {
+ const vs = compileShader(gl, gl.VERTEX_SHADER, VERTEX_SHADER);
+ const fs = compileShader(gl, gl.FRAGMENT_SHADER, FRAGMENT_SHADER);
+ const program = linkProgram(gl, vs, fs);
+ gl.deleteShader(vs);
+ gl.deleteShader(fs);
+
+ const vao = gl.createVertexArray();
+ if (!vao) {
+ throw new Error('Failed to create WebGL vertex array');
+ }
+
+ gl.bindVertexArray(vao);
+
+ const data = new Float32Array([
+ -1, -1, 0, 0, 1, -1, 1, 0, -1, 1, 0, 1, 1, 1, 1, 1,
+ ]);
+
+ const vbo = gl.createBuffer();
+ if (!vbo) {
+ throw new Error('Failed to create WebGL buffer');
+ }
+
+ gl.bindBuffer(gl.ARRAY_BUFFER, vbo);
+ gl.bufferData(gl.ARRAY_BUFFER, data, gl.STATIC_DRAW);
+
+ const aPos = gl.getAttribLocation(program, 'aPos');
+ const aUv = gl.getAttribLocation(program, 'aUv');
+ gl.enableVertexAttribArray(aPos);
+ gl.vertexAttribPointer(aPos, 2, gl.FLOAT, false, 16, 0);
+ gl.enableVertexAttribArray(aUv);
+ gl.vertexAttribPointer(aUv, 2, gl.FLOAT, false, 16, 8);
+
+ gl.bindVertexArray(null);
+
+ const texture = gl.createTexture();
+ if (!texture) {
+ throw new Error('Failed to create WebGL texture');
+ }
+
+ gl.bindTexture(gl.TEXTURE_2D, texture);
+ gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);
+ gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);
+ gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);
+ gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);
+ gl.bindTexture(gl.TEXTURE_2D, null);
+
+ return {
+ gl,
+ program,
+ vao,
+ vbo,
+ texture,
+ uSource: gl.getUniformLocation(program, 'uSource'),
+ uResolution: gl.getUniformLocation(program, 'uResolution'),
+ uBlockSize: gl.getUniformLocation(program, 'uBlockSize'),
+ };
+};
+
+export const pixelate = createEffect<PixelateParams, PixelateState>({
+ type: 'remotion/pixelate',
+ label: 'pixelate()',
+ documentationLink: 'https://www.remotion.dev/docs/effects/pixelate',
+ backend: 'webgl2',
+
+ calculateKey: (params) => {
+ const r = resolve(params);
+ return `pixelate-${r.blockSize}`;
+ },
+ setup: (target) => {
+ const gl = target.getContext('webgl2', {
+ premultipliedAlpha: true,
+ alpha: true,
+ preserveDrawingBuffer: true,
+ });
+ if (!gl) {
+ throw createWebGL2ContextError('pixelate effect');
+ }
+
+ return createPixelateState(gl);
+ },
+ apply: ({source, width, height, params, state, flipSourceY}) => {
+ const r = resolve(params);
+
+ state.gl.viewport(0, 0, width, height);
+ state.gl.clearColor(0, 0, 0, 0);
+ state.gl.clear(state.gl.COLOR_BUFFER_BIT);
+
+ state.gl.useProgram(state.program);
+ state.gl.bindVertexArray(state.vao);
+ state.gl.bindFramebuffer(state.gl.FRAMEBUFFER, null);
+ state.gl.activeTexture(state.gl.TEXTURE0);
+ state.gl.bindTexture(state.gl.TEXTURE_2D, state.texture);
+ state.gl.pixelStorei(state.gl.UNPACK_FLIP_Y_WEBGL, flipSourceY);
+ state.gl.pixelStorei(state.gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, true);
+ state.gl.texImage2D(
+ state.gl.TEXTURE_2D,
+ 0,
+ state.gl.RGBA,
+ state.gl.RGBA,
+ state.gl.UNSIGNED_BYTE,
+ source as TexImageSource,
+ );
+
+ if (state.uSource) state.gl.uniform1i(state.uSource, 0);
+ if (state.uBlockSize) state.gl.uniform1f(state.uBlockSize, r.blockSize);
+ if (state.uResolution) state.gl.uniform2f(state.uResolution, width, height);
+
+ state.gl.drawArrays(state.gl.TRIANGLE_STRIP, 0, 4);
+ state.gl.bindVertexArray(null);
+ state.gl.bindTexture(state.gl.TEXTURE_2D, null);
+ state.gl.useProgram(null);
+ },
+ cleanup: ({gl, program, vao, vbo, texture}) => {
+ gl.deleteTexture(texture);
+ gl.deleteBuffer(vbo);
+ gl.deleteProgram(program);
+ gl.deleteVertexArray(vao);
+ },
+
+ schema: pixelateSchema,
+ validateParams: validatePixelateParams,
+});
diff --git a/packages/effects/src/test/effect-params.test.ts b/packages/effects/src/test/effect-params.test.ts
index 57c64ff1fb..4be20567e9 100644
--- a/packages/effects/src/test/effect-params.test.ts
+++ b/packages/effects/src/test/effect-params.test.ts
@@ -28,6 +28,7 @@ import {
import {noise} from '../noise.js';
import {pattern} from '../pattern.js';
import {pixelDissolve} from '../pixel-dissolve.js';
+import {pixelate} from '../pixelate.js';
import {rings} from '../rings.js';
import {saturation} from '../saturation.js';
import {scale} from '../scale.js';
@@ -2558,6 +2559,26 @@ test('pixelDissolve() parameters produce distinct effect keys', () => {
).toBe(6);
});
+test('pixelate() accepts default params', () => {
+ expect(() => pixelate()).not.toThrow();
+});
+
+test('pixelate() rejects non-finite blockSize', () => {
+ expect(() => pixelate({blockSize: Number.NaN})).toThrow(
+ '"blockSize" must be a finite number',
+ );
+});
+
+test('pixelate() rejects blockSize below range', () => {
+ expect(() => pixelate({blockSize: 0})).toThrow('"blockSize" must be >= 1');
+});
+
+test('pixelate() blockSize produces distinct effect keys', () => {
+ const subtle = pixelate({blockSize: 4});
+ const strong = pixelate({blockSize: 40});
+ expect(subtle.effectKey).not.toBe(strong.effectKey);
+});
+
test('xyTranslate() accepts default params', () => {
expect(() => xyTranslate()).not.toThrow();
});
diff --git a/packages/skills/skills/remotion/SKILL.md b/packages/skills/skills/remotion/SKILL.md
index a3126a40f8..e96143d486 100644
--- a/packages/skills/skills/remotion/SKILL.md
+++ b/packages/skills/skills/remotion/SKILL.md
@@ -260,7 +260,7 @@ When creating a visual effect, prefer: 1. normal Remotion/HTML/CSS/SVG/filter/bl
For light leak overlays, see [rules/light-leaks.md](rules/light-leaks.md). Docs: https://www.remotion.dev/docs/effects
-Available effects: `brightness()`, `contrast()`, `colorKey()`, `duotone()`, `grayscale()`, `hue()`, `invert()`, `saturation()`, `tint()`, `blur()`, `linearProgressiveBlur()`, `dropShadow()`, `glow()`, `evolve()`, `mirror()`, `scale()`, `uvTranslate()`, `xyTranslate()`, `barrelDistortion()`, `chromaticAberration()`, `fisheye()`, `wave()`, `burlap()`, `dotGrid()`, `halftone()`, `noise()`, `noiseDisplacement()`, `pattern()`, `pixelDissolve()`, `scanlines()`, `speckle()`, `shine()`, `shrinkwrap()`, `vignette()`, `contourLines()`, `halftoneLinearGradient()`, `whiteNoise()`, `tvSignalOff()`, `lines()`, `rings()`, `waves()`, `zigzag()`, `lightLeak()`, `starburst()`.
+Available effects: `brightness()`, `contrast()`, `colorKey()`, `duotone()`, `grayscale()`, `hue()`, `invert()`, `saturation()`, `tint()`, `blur()`, `linearProgressiveBlur()`, `dropShadow()`, `glow()`, `evolve()`, `mirror()`, `scale()`, `uvTranslate()`, `xyTranslate()`, `barrelDistortion()`, `chromaticAberration()`, `fisheye()`, `wave()`, `burlap()`, `dotGrid()`, `halftone()`, `noise()`, `noiseDisplacement()`, `pattern()`, `pixelate()`, `pixelDissolve()`, `scanlines()`, `speckle()`, `shine()`, `shrinkwrap()`, `vignette()`, `contourLines()`, `halftoneLinearGradient()`, `whiteNoise()`, `tvSignalOff()`, `lines()`, `rings()`, `waves()`, `zigzag()`, `lightLeak()`, `starburst()`.
## 3D content