Documentation
- 312 sections
- Solid
- Tailwind or StyleX
Avatar
Gradient
Image
Ordered-dithers any image into chunky cells; edges can dissolve into the page. Below: the site's own sprite sheet run through it.
- src
- Typestring Defaultrequired
- cell
- Typenumber (px) Defaultseed / 3
- focusY
- Typenumber 0…1 Defaultseed / 0.5
- fade
- Typenumber (px) Defaultseed / 0
- seed
- Typenumber Defaultundefined
- alt
- Typestring Default""
- class
- Typestring Defaultundefined
- renderMode
- Type"live" | "static" Default"live"
- precompiled
- Typestring | { src: string; width?: number; height?: number } Defaultundefined
- maxCols / maxRows
- Typenumber Default960 / 600 live, 320 / 200 static
Add it to your project
One line copies DitherImage and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherImage