Raster Paint
A pixelated figure is painted tile by tile in warm to blue colors as a scan line crosses it. A free, MIT-licensed Remotion number animation.
$ pnpm dlx shadcn@latest add @remocn/raster-paintUsage
// src/Root.tsx
import { Composition } from "remotion";
import { RasterPaint } from "@/components/remocn/raster-paint";
const RasterPaintScene = () => (
<RasterPaint title="10x" label="Faster renders in remocn 2.0" />
);
export const RemotionRoot = () => (
<Composition
id="RasterPaint"
component={RasterPaintScene}
durationInFrames={240}
fps={60}
width={1280}
height={720}
/>
);A scan line sweeps down the frame, painting the pixelated figure tile by tile, with a warm to blue gradient trailing behind it. A label fades in once the scan is done. Pass title and label; it ships light and dark through theme.
Props13
| Prop | Type | Default |
|---|---|---|
| title | string"10x" Figure that gets painted, as text. | |
| label | string"Faster renders in remocn 2.0" Small line that fades in under the figure. | |
| scanLength | number58 Frames for the scan line to paint the whole figure. | |
| trail | number12 Frames a pixel takes to cool from the hot accent to its final color. | |
| accent | string"#3B5BFD" Accent color for highlights and small marks. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| fontFamily | string"Geist Mono" Typeface for the copy. Load the font in your project first. | |
| scale | number1 Size of the foreground around the frame's center; the background stays put. | |
| delay | number0 Frames to hold the first frame before anything moves. | |
| grain | booleantrue Film grain over the scene. | |
| theme | "dark" | "light""dark" Color theme, "dark" or "light". | |
| speed | number1 Playback speed multiplier for the whole timeline. | |
- titlestring
Figure that gets painted, as text.
Default
"10x" - labelstring
Small line that fades in under the figure.
Default
"Faster renders in remocn 2.0" - scanLengthnumber
Frames for the scan line to paint the whole figure.
Default
58 - trailnumber
Frames a pixel takes to cool from the hot accent to its final color.
Default
12 - accentstring
Accent color for highlights and small marks.
Default
"#3B5BFD" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Background fill; pass "transparent" to drop it.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Geist Mono" - scalenumber
Size of the foreground around the frame's center; the background stays put.
Default
1 - delaynumber
Frames to hold the first frame before anything moves.
Default
0 - grainboolean
Film grain over the scene.
Default
true - theme"dark" | "light"
Color theme, "dark" or "light".
Default
"dark" - speednumber
Playback speed multiplier for the whole timeline.
Default
1