Capítulo 571 de 988
_Part of the @remotion/effects package.
import {
AbsoluteFill,
CanvasImage,
staticFile,
useCurrentFrame,
} from 'remotion';
export const MyComp: React.FC = () => {
const frame = useCurrentFrame();
return (
<AbsoluteFill>
<CanvasImage
src={staticFile('image.png')}
width={1280}
height={720}
fit="cover"
effects={[
contourLines({
lineColor: 'rgba(255, 255, 255, 0.75)',
lineWidth: 1.4,
spacing: 36,
scale: 220,
complexity: 0.7,
smoothness: 0.75,
seed: 2,
offsetX: frame * 0.4,
offsetY: frame * 0.2,
}),
]}
/>
</AbsoluteFill>
);
};