Image Dithering
Click to change the sample image
Installation
npm i @paper-design/shaders-react
Code
import { ImageDithering } from '@paper-design/shaders-react'; <ImageDithering width={1280} height={720} image="https://paper.design/flowers.webp" colorBack="#000c38" colorFront="#94ffaf" colorHighlight="#eaff94" originalColors={false} type="8x8" size={2} colorSteps={2} fit="cover" />
Shader Props
Common Props
Description
A dithering image filter with support for 4 dithering modes and multiple color palettes (2-color, 3-color, and multicolor options, using either predefined colors or ones sampled directly from the original image).