🎥 Make videos programmatically with React
update interpolate colors doc
Shankhadeep Deyfb9cf6b11e38
diff --git a/packages/docs/docs/interpolate-colors.md b/packages/docs/docs/interpolate-colors.mdindex f0f193e604..1b1f06a3f1 100644--- a/packages/docs/docs/interpolate-colors.md+++ b/packages/docs/docs/interpolate-colors.md@@ -30,12 +30,12 @@ import {useCurrentFrame, interpolateColors} from 'remotion';const frame = useCurrentFrame(); // 10-const color = interpolateColors(input,+const color = interpolateColors(frame,[0, 20],['red', 'yellow']); // rgba(255, 128, 0, 1)-const color = interpolateColors(input,+const color = interpolateColors(frame,[0, 20],['#ff0000', '#ffff00']); // rgba(255, 128, 0, 1)@@ -53,13 +53,13 @@ import {useCurrentFrame, interpolateColors} from 'remotion'const frame = useCurrentFrame(); // 10// RGB colors-const color = interpolateColors(input,+const color = interpolateColors(frame,[0, 20],['rgb(255, 0, 0)', 'rgb(255, 255, 0)']); // rgba(255, 128, 0, 1)// RGBA colors-const color = interpolateColors(input,+const color = interpolateColors(frame,[0, 20],['rgba(255, 0, 0, 1)', 'rgba(255, 255, 0, 0)']); // rgba(255, 128, 0, 0.5)@@ -76,13 +76,13 @@ import {useCurrentFrame, interpolateColors} from 'remotion'const frame = useCurrentFrame(); // 10//hsl example-const color = interpolateColors(input,+const color = interpolateColors(frame,[0, 20],['hsl(0, 100%, 50%)', 'hsl(60, 100%, 50%)']); // rgba(255, 128, 0, 1)//hsla example-const color = interpolateColors(input,+const color = interpolateColors(frame,[0, 20],['hsla(0, 100%, 50%, 1)', 'hsla(60, 100%, 50%, 1)']); // rgba(255, 128, 0, 1)