Skip to content

🎥 Make videos programmatically with React

Docs: Refine color correction guidance

Jonny Burger45eb21b08b38
diff --git a/packages/docs/docs/color-correction.mdx b/packages/docs/docs/color-correction.mdx
index 9e3a7938e6..bc80a64678 100644
--- a/packages/docs/docs/color-correction.mdx
+++ b/packages/docs/docs/color-correction.mdx
@@ -5,11 +5,11 @@ title: Color correction
crumb: 'Designing visuals'
---
-Color correction can adjust the exposure, contrast, color balance, and saturation of canvas-based content.
+Color correction is possible in Remotion and is implemented using [effects](/docs/effects).
-## Primary adjustments
+## `colorCorrection()` effect
-Use [`colorCorrection()`](/docs/effects/color-correction) to combine common adjustments in one effect:
+Use the [`colorCorrection()`](/docs/effects/color-correction) effect to combine common adjustments in one effect:
```tsx twoslash title="MyComp.tsx"
import {colorCorrection} from '@remotion/effects/color-correction';
@@ -32,10 +32,15 @@ export const MyComp: React.FC = () => {
};
```
+This is useful if you would like to have interactive controls in the Remotion Studio allowing you to live-preview multiple adjustments at once.
+
Individual effects such as [`brightness()`](/docs/effects/brightness), [`contrast()`](/docs/effects/contrast), and [`saturation()`](/docs/effects/saturation) are also available.
## LUTs
+LUTs (Look-up tables) are a popular way to define color adjustments for a video.
+You can find many of them online.
+
Use [`lut()`](/docs/effects/lut) to apply an existing 3D color grade in the `.cube` format.
Pass the file contents as a string:
@@ -43,36 +48,40 @@ Pass the file contents as a string:
import {lut} from '@remotion/effects/lut';
import {Video} from '@remotion/media';
-const content = `
-TITLE "Warm"
-LUT_3D_SIZE 2
-
-0 0 0
-1 0.1 0
-0 0.9 0.1
-1 0.9 0.1
-0 0.1 0.8
-1 0.2 0.7
-0 0.9 0.8
-1 0.9 0.8
-`;
export const MyComp: React.FC = () => {
return (
<Video
src="https://remotion.media/video.mp4"
- effects={[lut({content})]}
+ effects={[
+ lut({
+ content: `
+ TITLE "Warm"
+ LUT_3D_SIZE 2
+ 0 0 0
+ 1 0.1 0
+ 0 0.9 0.1
+ 1 0.9 0.1
+ 0 0.1 0.8
+ 1 0.2 0.7
+ 0 0.9 0.8
+ 1 0.9 0.8
+ `
+ })
+ ]}
/>
);
};
```
-If the LUT is hosted remotely, fetch its contents before rendering and pass the resulting string to `lut()`.
-
## Combining adjustments
Effects are applied in array order. Place `colorCorrection()` before `lut()` to make primary adjustments before applying the final grade.
+## Previewing LUTs in the Studio
+
+You can drop .cube files into your public folder and preview LUTs by clicking on them in the Assets panel.
+
## See also
- [Effects](/docs/effects)
diff --git a/packages/docs/docs/effects/lut.mdx b/packages/docs/docs/effects/lut.mdx
index 09176826c8..5745edb99e 100644
--- a/packages/docs/docs/effects/lut.mdx
+++ b/packages/docs/docs/effects/lut.mdx
@@ -22,25 +22,26 @@ Applies an inline 3D color lookup table in the `.cube` format.
import {lut} from '@remotion/effects/lut';
import {Video} from '@remotion/media';
-const content = `
-TITLE "Teal and orange"
-LUT_3D_SIZE 2
-
-0.02 0.05 0.08
-0.95 0.12 0.06
-0.02 0.8 0.4
-1 0.9 0.18
-0.08 0.18 0.9
-0.95 0.2 0.75
-0.15 0.88 0.92
-1 0.92 0.78
-`;
-
export const MyComp: React.FC = () => {
return (
<Video
src="https://remotion.media/video.mp4"
- effects={[lut({content})]}
+ effects={[
+ lut({
+ content: `
+ TITLE "Warm"
+ LUT_3D_SIZE 2
+ 0 0 0
+ 1 0.1 0
+ 0 0.9 0.1
+ 1 0.9 0.1
+ 0 0.1 0.8
+ 1 0.2 0.7
+ 0 0.9 0.8
+ 1 0.9 0.8
+ `
+ })
+ ]}
/>
);
};