🎥 Make videos programmatically with React
Skills: Prefer built-in effects for supported components
Jonny Burger2ffa0650ea6f
diff --git a/packages/skills/skills/remotion-markup/SKILL.md b/packages/skills/skills/remotion-markup/SKILL.mdindex 7f594ed42f..7d9701f5e6 100644--- a/packages/skills/skills/remotion-markup/SKILL.md+++ b/packages/skills/skills/remotion-markup/SKILL.md@@ -340,14 +340,37 @@ When adding motion blur or a movement trail, read [motion-blur.md](motion-blur.m## Visual and pixel effects-When creating a visual effect, consider whether it is feasible using CSS and HTML, or whether a shader is needed.-Order or preference:--1. Regular HTML + CSS or other web techniques-2. An effect applied to the element directly (`<Video>`, `<Img>`), or by wrapping the content in [`<HtmlInCanvas>`](html-in-canvas.md), which also accepts `effects`:--- A listed effect via [effects.md](effects.md)-- A custom `createEffect()` via [effects.md](effects.md) when no preset is available.+When adding a visual effect, first identify the element or group it should affect.+If the target component supports `effects` and a built-in effect below matches the+request, prefer that effect over a CSS approximation. For example, apply+`vignette()` directly to a `<Video>`'s `effects` prop when the vignette should+affect that video.++Components that support `effects` include `<Video>` from `@remotion/media` and+`<Img>`, `<CanvasImage>`, `<Solid>`, and `<HtmlInCanvas>` from `remotion`.+Ordinary HTML elements and `<AbsoluteFill>` do not accept `effects`.++For other elements, prefer regular HTML and CSS where suitable. Consider wrapping+a group in [`<HtmlInCanvas>`](html-in-canvas.md) when post-processing the whole+group is appropriate and the environment supports it. Applying an effect to a+background video leaves foreground text unaffected; applying it to a group that+includes the text affects both. Preserve the requested scope.++Read [effects.md](effects.md) before applying an effect for imports, parameters,+and setup. It also covers reusable custom effects with `createEffect()` when no+built-in effect matches.++### Available effects++Built-in effects from `@remotion/effects`:++- Color and tone: `brightness()`, `colorCorrection()`, `colorKey()`, `contrast()`, `duotone()`, `exposure()`, `grayscale()`, `hue()`, `invert()`, `levels()`, `linearGradient()`, `linearGradientTint()`, `lut()`, `saturation()`, `shadowsHighlights()`, `thermalVision()`, `tint()`, `vibrance()`, `whiteBalance()`.+- Blur and trails: `blur()`, `lightTrail()`, `linearProgressiveBlur()`, `radialProgressiveBlur()`, `regionBlur()`, `zoomBlur()`.+- Lighting: `dropShadow()`, `glow()`, `lightLeak()`, `shine()`, `starburst()`, `vignette()`.+- Distortion and transforms: `barrelDistortion()`, `chromaticAberration()`, `cornerPin()`, `fisheye()`, `mirror()`, `noiseDisplacement()`, `scale()`, `skew()`, `tile()`, `uvTranslate()`, `wave()`, `xyTranslate()`.+- Textures and patterns: `burlap()`, `checkerboard()`, `contourLines()`, `dotGrid()`, `emboss()`, `flannel()`, `gridlines()`, `halftone()`, `halftoneLinearGradient()`, `lines()`, `liquidContours()`, `noise()`, `paper()`, `pattern()`, `rings()`, `scanlines()`, `speckle()`, `tvSignalOff()`, `waves()`, `whiteNoise()`, `zigzag()`.+- Edges: `outline()`, `roughenEdges()`, `shrinkwrap()`, `tear()`.+- Pixelation and transitions: `evolve()`, `linearProgressivePixelate()`, `pixelate()`, `pixelDissolve()`, `radialProgressivePixelate()`, `venetianBlinds()`.## 3D contentdiff --git a/packages/skills/skills/remotion-markup/effects.md b/packages/skills/skills/remotion-markup/effects.mdindex b8eeefacdd..b221478a08 100644--- a/packages/skills/skills/remotion-markup/effects.md+++ b/packages/skills/skills/remotion-markup/effects.md@@ -5,7 +5,8 @@ metadata:tags: effects, visual-effects, webgl, canvas, video, create-effect----Use this rule only when the top-level skill lists an effect that matches the requested look, or when the user asks to create a reusable custom effect.+Read this guidance when adding an effect to a component that supports `effects`,+or when considering canvas post-processing or a reusable custom effect.Docs: https://www.remotion.dev/docs/effectsCustom effect docs: https://www.remotion.dev/docs/create-effect@@ -18,7 +19,7 @@ Install the package that provides the chosen effect:npx remotion add @remotion/effects```-Effects are functions passed to the `effects` prop of canvas-based components such as `<Video>` from `@remotion/media`, `<Solid>`, `<CanvasImage>`, and `<HtmlInCanvas>`.+Effects are functions passed to the `effects` prop of supported components such as `<Video>` from `@remotion/media`, `<Img>`, `<Solid>`, `<CanvasImage>`, and `<HtmlInCanvas>`.```tsximport {Video} from '@remotion/media';@@ -42,7 +43,7 @@ Config.setChromiumOpenGlRenderer('angle');## Available effects-`brightness()`, `contrast()`, `colorKey()`, `duotone()`, `grayscale()`, `hue()`, `invert()`, `saturation()`, `tint()`, `linearGradient()`, `linearGradientTint()`, `thermalVision()`, `blur()`, `linearProgressiveBlur()`, `radialProgressiveBlur()`, `zoomBlur()`, `dropShadow()`, `glow()`, `lightTrail()`, `evolve()`, `venetianBlinds()`, `mirror()`, `scale()`, `uvTranslate()`, `xyTranslate()`, `barrelDistortion()`, `chromaticAberration()`, `fisheye()`, `cornerPin()`, `wave()`, `burlap()`, `emboss()`, `dotGrid()`, `halftone()`, `noise()`, `noiseDisplacement()`, `paper()`, `roughenEdges()`, `pattern()`, `pixelate()`, `pixelDissolve()`, `scanlines()`, `speckle()`, `shine()`, `shrinkwrap()`, `vignette()`, `contourLines()`, `checkerboard()`, `halftoneLinearGradient()`, `gridlines()`, `whiteNoise()`, `tvSignalOff()`, `lines()`, `rings()`, `waves()`, `zigzag()`, `lightLeak()`, `starburst()`.+See [Available effects](SKILL.md#available-effects) in the main markup skill for the built-in effect catalog.Example: