Chapter 586: halftoneLinearGradient()
Core Idea
_Part of the @remotion/effects package.
Key Concepts
- Preview
- Example
- API
- firstStopDotSize?
- secondStopDotSize?
- firstStopPosition?
- secondStopPosition?
- gridSize?
Code Examples
export const MyComp: React.FC = () => {
return (
<AbsoluteFill>
<Solid
width={1280}
height={720}
color="black"
effects={[
halftoneLinearGradient({
firstStopDotSize: 0,
secondStopDotSize: 42,
firstStopPosition: [0, 0.5],
secondStopPosition: [1, 0.5],
gridSize: 24,
dotColor: '#0b84f3',
}),
]}
/>
</AbsoluteFill>
);
};
- What it demonstrates: Usage pattern for halftoneLinearGradient() from the official docs.
Key Takeaways
- Understand preview when working with halftoneLinearGradient().
- Understand example when working with halftoneLinearGradient().
- Understand api when working with halftoneLinearGradient().
- Understand firststopdotsize? when working with halftoneLinearGradient().
- Understand secondstopdotsize? when working with halftoneLinearGradient().
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.