Skip to content

Code-first video & image, rendered natively on WebGPU.

4.9 KB
Raw Blame
// @generated by scripts/generate-effects.mts — do not edit.
// Source of truth: nodes/*/package.json (`framefields`) and nodes/*/src/shared/config.ts.
// Regenerate with `pnpm run generate:effects`.

import { Blur, type BlurProps } from "../custom/blur.js";
import {
	Ascii,
	type AsciiProps,
	AudioCompressor,
	type AudioCompressorProps,
	AudioDelay,
	type AudioDelayProps,
	AudioFade,
	type AudioFadeProps,
	AudioNoiseGate,
	type AudioNoiseGateProps,
	AudioParametricEq,
	type AudioParametricEqProps,
	AudioReverb,
	type AudioReverbProps,
	CameraParallax3D,
	type CameraParallax3DProps,
	ChannelMerger,
	type ChannelMergerProps,
	ChannelSplitter,
	type ChannelSplitterProps,
	ColorBalance,
	type ColorBalanceProps,
	ColorKey,
	type ColorKeyProps,
	Contour,
	type ContourProps,
	CornerPin,
	type CornerPinProps,
	CRT,
	type CRTProps,
	Datamosh,
	type DatamoshProps,
	DisplacementMap,
	type DisplacementMapProps,
	Dither,
	type DitherProps,
	ExtractLUT,
	type ExtractLUTProps,
	Flip,
	type FlipProps,
	Gooey,
	type GooeyProps,
	Iridescence,
	type IridescenceProps,
	Kaleidoscope,
	type KaleidoscopeProps,
	KenBurns,
	type KenBurnsProps,
	LayerStyle,
	type LayerStyleProps,
	Liquify,
	type LiquifyProps,
	MaskMath,
	type MaskMathProps,
	MeshWarp,
	type MeshWarpProps,
	NoiseGenerator,
	type NoiseGeneratorProps,
	OpArt,
	type OpArtProps,
	Paint,
	Painterly,
	type PainterlyProps,
	type PaintProps,
	PatchHeal,
	type PatchHealProps,
	Pixelate,
	type PixelateProps,
	Posterize,
	type PosterizeProps,
	ProceduralVFX,
	type ProceduralVFXProps,
	RefineEdge,
	type RefineEdgeProps,
	RefractionCaustics3D,
	type RefractionCaustics3DProps,
	ResizerScaler,
	type ResizerScalerProps,
	RGBSplit,
	type RGBSplitProps,
	Rotate,
	type RotateProps,
	StereoPanning,
	type StereoPanningProps,
	Toon,
	type ToonProps,
	Trails,
	type TrailsProps,
	Vignette,
	type VignetteProps,
} from "./classes.js";

/** `Effect.<factory>(config)` helpers, one per generated effect class. */
export const effectFactories = {
	ascii: (config?: AsciiProps) => new Ascii(config),
	audioCompressor: (config?: AudioCompressorProps) =>
		new AudioCompressor(config),
	audioDelay: (config?: AudioDelayProps) => new AudioDelay(config),
	audioFade: (config?: AudioFadeProps) => new AudioFade(config),
	audioNoiseGate: (config?: AudioNoiseGateProps) => new AudioNoiseGate(config),
	audioParametricEq: (config?: AudioParametricEqProps) =>
		new AudioParametricEq(config),
	audioReverb: (config?: AudioReverbProps) => new AudioReverb(config),
	blur: (config?: BlurProps) => new Blur(config),
	cameraParallax3D: (config?: CameraParallax3DProps) =>
		new CameraParallax3D(config),
	channelMerger: (config?: ChannelMergerProps) => new ChannelMerger(config),
	channelSplitter: (config?: ChannelSplitterProps) =>
		new ChannelSplitter(config),
	colorBalance: (config?: ColorBalanceProps) => new ColorBalance(config),
	colorKey: (config?: ColorKeyProps) => new ColorKey(config),
	contour: (config?: ContourProps) => new Contour(config),
	cornerPin: (config?: CornerPinProps) => new CornerPin(config),
	cRT: (config?: CRTProps) => new CRT(config),
	datamosh: (config?: DatamoshProps) => new Datamosh(config),
	displacementMap: (config?: DisplacementMapProps) =>
		new DisplacementMap(config),
	dither: (config?: DitherProps) => new Dither(config),
	extractLUT: (config?: ExtractLUTProps) => new ExtractLUT(config),
	flip: (config?: FlipProps) => new Flip(config),
	gooey: (config?: GooeyProps) => new Gooey(config),
	iridescence: (config?: IridescenceProps) => new Iridescence(config),
	kaleidoscope: (config?: KaleidoscopeProps) => new Kaleidoscope(config),
	kenBurns: (config?: KenBurnsProps) => new KenBurns(config),
	layerStyle: (config?: LayerStyleProps) => new LayerStyle(config),
	liquify: (config?: LiquifyProps) => new Liquify(config),
	maskMath: (config?: MaskMathProps) => new MaskMath(config),
	meshWarp: (config?: MeshWarpProps) => new MeshWarp(config),
	noiseGenerator: (config?: NoiseGeneratorProps) => new NoiseGenerator(config),
	opArt: (config?: OpArtProps) => new OpArt(config),
	paint: (config?: PaintProps) => new Paint(config),
	painterly: (config?: PainterlyProps) => new Painterly(config),
	patchHeal: (config?: PatchHealProps) => new PatchHeal(config),
	pixelate: (config?: PixelateProps) => new Pixelate(config),
	posterize: (config?: PosterizeProps) => new Posterize(config),
	proceduralVFX: (config?: ProceduralVFXProps) => new ProceduralVFX(config),
	refineEdge: (config?: RefineEdgeProps) => new RefineEdge(config),
	refractionCaustics3D: (config?: RefractionCaustics3DProps) =>
		new RefractionCaustics3D(config),
	resizerScaler: (config?: ResizerScalerProps) => new ResizerScaler(config),
	rGBSplit: (config?: RGBSplitProps) => new RGBSplit(config),
	rotate: (config?: RotateProps) => new Rotate(config),
	stereoPanning: (config?: StereoPanningProps) => new StereoPanning(config),
	toon: (config?: ToonProps) => new Toon(config),
	trails: (config?: TrailsProps) => new Trails(config),
	vignette: (config?: VignetteProps) => new Vignette(config),
} as const;