Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

1.6 KB
Raw Blame
---
title: Dithering
description: Ordered-dither shading over an animated gradient field
component: shader-dithering
vibe: tech
length: 150
useWhen:
  - "You want a retro/print, 1-bit ordered-dither texture over a moving gradient."
  - "A tech or lo-fi scene benefits from visible bayer/ordered dot structure."
  - "You want the matrix tunable via `type` (`\"2x2\"`, `\"4x4\"`, `\"8x8\"`)."
avoidWhen:
  - "You want a centered dithered sphere — override `shape` (this wrapper defaults to full-bleed `\"wave\"`)."
  - "You want smooth, non-textured color — use `shader-mesh-gradient`."
  - "The dot pattern would reduce legibility of small text — raise `size` or use a solid `backdrop`."
askedAs:
  - "retro dither texture"
  - "1-bit halftone background"
  - "I want a pixelated dotted gradient like old print or bitmap"
  - "lo-fi tech backdrop with visible bayer dots"
  - "scene that feels like an early computer or newspaper print"
  - "moving gradient made of coarse dither pattern"
---

<ComponentPreview name="shader-dithering" />

<InstallBlock name="shader-dithering" />

## Usage

```tsx
// src/Root.tsx
import { Composition } from "remotion";
import { ShaderDithering } from "@/components/remocn/shader-dithering";

const ShaderDitheringScene = () => (
  <ShaderDithering speed={1} size={2} type="4x4" />
);

export const RemotionRoot = () => (
  <Composition
    id="ShaderDithering"
    component={ShaderDitheringScene}
    durationInFrames={150}
    fps={30}
    width={1280}
    height={720}
  />
);
```

## Credits

Shader by [paper-design/shaders](https://github.com/paper-design/shaders).