Installation
Choose your framework. The registry installs one component file and its PixiJS dependency.
Installation unavailable
This preview is not assigned to the free or paid catalog. Installation is unavailable.
The registry command writes the component to src/lib/components/ui/PaletteDither.svelte and installs its dependencies.
The registry command writes the component to src/components/ui/PaletteDither.tsx and installs its dependencies.
The registry command writes the component to src/components/ui/PaletteDither.vue and installs its dependencies.
Overview
Palette Dither samples an image on a canvas-aligned grid, compares its luminance against a Bayer threshold, and resolves every pixel to one of four explicit palette colors.
The ordered pattern restores the impression of intermediate tones without introducing colors outside the selected palette.
Basic usage
The shader fills its parent. Your layout decides whether that parent is a card, hero, or viewport.
- Use Pixel size to trade fine photographic detail for a more graphic low-resolution texture.
- Dither strength at zero keeps the same palette while removing the spatial threshold pattern.
Component API
Types below match the selected Svelte component.
Types below match the selected React component.
Types below match the selected Vue component.