Dither field

A moving gradient with pixelated shading.

0:00 / 0:01

Customize

6
4
0.3

Installation

pnpm odori add component dither-field

Edit the source in videos/components/dither-field/. Use odori diff to compare upstream changes and odori update to apply updates.

Timing contract

Use these durations and content limits when composing a scene. Run odori test to check your video.

Family
Backgrounds
Recommended duration
180 frames · 6s
Minimum duration
30 frames · 1s
Entrance
0 frames
Exit
0 frames
Reduced motion
set speed to 0 and the dither holds one still gradient
Requires
Odori
Content limits
none

Props

PropTypeDefaultRequired
colorsTwo colours the dither trades between. Defaults to the brand.[string, string]——
pixelSizeSide of one dither pixel, in design pixels.number6—
levelsQuantization steps between the two colours. 2 is pure 1-bit.number4—
speedHow fast the gradient drifts through the grid.number0.3—

Related components

All components