Chapter 576: duotone()
Core Idea
_Part of the @remotion/effects package.
Key Concepts
- Preview
- Example
- API
- darkColor?
- lightColor?
- threshold?
- disabled?
- Requirements
Code Examples
export const MyComp: React.FC = () => {
return (
<AbsoluteFill>
<Video
src="https://remotion.media/video.mp4"
effects={[
duotone({
darkColor: 'black',
lightColor: 'white',
threshold: 0.18,
}),
]}
/>
</AbsoluteFill>
);
};
- What it demonstrates: Usage pattern for duotone() from the official docs.
Key Takeaways
- Understand preview when working with duotone().
- Understand example when working with duotone().
- Understand api when working with duotone().
- Understand darkcolor? when working with duotone().
- Understand lightcolor? when working with duotone().
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.