Capítulo 615 de 988

Chapter 615: shine()

Core Idea

_Part of the @remotion/effects package.

Key Concepts

  • Preview
  • Example
  • API
  • progress?
  • angle?
  • haloSigma?
  • coreSigma?
  • haloIntensity?

Code Examples

export const MyComp: React.FC = () => {
  const frame = useCurrentFrame();
  const progress = interpolate(frame, [15, 45], [0, 1], {
    extrapolateLeft: 'clamp',
    extrapolateRight: 'clamp',
  });

  return (
    <AbsoluteFill>
      <Video
        src="https://remotion.media/video.mp4"
        effects={[
          shine({
            progress,
            angle: 30,
            haloSigma: 200,
            coreSigma: 65,
            haloIntensity: 0.3,
            coreIntensity: 0.4,
          }),
        ]}
      />
    </AbsoluteFill>
  );
};
  • What it demonstrates: Usage pattern for shine() from the official docs.

Key Takeaways

  1. Understand preview when working with shine().
  2. Understand example when working with shine().
  3. Understand api when working with shine().
  4. Understand progress? when working with shine().
  5. Understand angle? when working with shine().

Connects To

  • Animated Emoji: related page in the Effects Library section.
  • get Available Emoji: related page in the Effects Library section.
  • api: related page in the Effects Library section.