Capítulo 602 de 988

Chapter 602: paper()

Core Idea

_Part of the @remotion/effects package.

Key Concepts

  • Preview
  • Example
  • API
  • amount?
  • colorFront?
  • colorBack?
  • contrast?
  • roughness?

Code Examples

export const MyComp: React.FC = () => {
  return (
    <AbsoluteFill>
      <Solid
        width={1280}
        height={720}
        color="#fff4d0"
        effects={[
          paper({
            roughness: 0.4,
            fiber: 0.3,
            fiberSize: 0.2,
            crumples: 0.3,
            crumpleSize: 0.35,
            folds: 0.65,
            foldCount: 5,
            drops: 0.2,
            scale: 0.6,
            seed: 6,
          }),
        ]}
      />
    </AbsoluteFill>
  );
};
  • What it demonstrates: Usage pattern for paper() from the official docs.

Key Takeaways

  1. Understand preview when working with paper().
  2. Understand example when working with paper().
  3. Understand api when working with paper().
  4. Understand amount? when working with paper().
  5. Understand colorfront? when working with paper().

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.