Chapter 610: roughenEdges()
Core Idea
_Part of the @remotion/effects package.
Key Concepts
- Preview
- Example
- API
- amount?
- border?
- scale?
- seed?
- disabled?
Code Examples
export const MyComp: React.FC = () => {
return (
<AbsoluteFill>
<CanvasImage
src={staticFile('logo-with-alpha.png')}
width={1280}
height={720}
fit="contain"
effects={[
roughenEdges({
border: 26.5,
scale: 0.07,
seed: 231.2,
}),
]}
/>
</AbsoluteFill>
);
};
- What it demonstrates: Usage pattern for roughenEdges() from the official docs.
Key Takeaways
- Understand preview when working with roughenEdges().
- Understand example when working with roughenEdges().
- Understand api when working with roughenEdges().
- Understand amount? when working with roughenEdges().
- Understand border? when working with roughenEdges().
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.