Documentation
- 312 sections
- Solid
- Tailwind or StyleX
Palette
Print screens
Every surface thresholds its density through a 4x4 matrix, the Bayer one unless told otherwise. DitherScreen swaps it for a printer's screen for everything inside it: lines, a falling hatch, clustered dots or a cross-hatch, charts included. A surface's seed still jitters whichever screen it prints through, and screenMatrix hands the same thresholds to a painter of your own.
- screen
- Type'bayer' | 'line' | 'diagonal' | 'dot' | 'cross' Default'diagonal'
- children
- Typecontent (every surface inside prints through the screen) Defaultnone
Add it to your project
One line copies Area, AreaChart, DitherAvatar, DitherGradient, DitherScreen 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 Area AreaChart DitherAvatar DitherGradient DitherScreen