NexoreUI
2.0
InstallationComponentsIconsTemplatesNewGeneratorBetaNexore MakePricing
Create Project
GitHub
NexoreUI
2.0
Navigation
InstallationComponentsIconsTemplatesGeneratorBetaNexore MakeCreate Project
InstallationComponents OverviewIcons
Components (72)
ButtonAction ButtonsInputSpecialized InputsForm ControlsCheckboxSelectSwitchSliderRatingFile Upload
CardAccordionTabsTableStepperScroll AreaNavigationDockData DisplayChartsCommerceMedia & Audio
Dialog (Modal)Overlays & DrawersAlertBadgeAvatarTooltipProgressSkeletonLoadersToasterSocial & ChatTheme Toggle
Aurora Border CardAurora Search PillAI Prompt InputCommand PaletteCode Block
Physics Showcase3D Product CardsLive 3D ObjectSoundPulseSilkUnveilNode Flow Graph
NexoreUI v2.0Studio
ComponentsDither Image

Dither Image

Ordered 8x8 Bayer matrix dithering shader with palette quantization and pointer lens.

PreviousTwist Ribbon
NextGravity Grid
ResourcesFull TemplatesProProject StudioSource on GitHub

Dither Image

Ordered Bayer matrix dithering shader that maps imagery to custom multi-tone palettes with dynamic pixel scaling and interactive pointer reveal lens.

Interactive Stage

Hover pointer to reveal original unfiltered pixels
Controls
Pixel Size3.0px
Quantize Levels3
Luma Contrast1.30
Reveal Radius0.22
Lens Softness0.18

Installation & Usage

component.tsx
1import { DitherImage } from "nexoreui";
2
3export function DitherShowcase() {
4 return (
5 <div className="relative h-[500px] w-full overflow-hidden rounded-2xl">
6 <DitherImage
7 px={3}
8 lv={3}
9 bn={3}
10 rad={0.25}
11 soft={0.2}
12 c0="#090a0f"
13 c1="#1e293b"
14 c2="#94a3b8"
15 c3="#f8fafc"
16 className="h-full w-full"
17 />
18 </div>
19 );
20}

API Reference

API Reference (Props)

PropTypeDefaultDescription
pxnumber3Quantized pixel block size in CSS pixels.
lvnumber3Number of luminance quantization stepping levels [2..8].
bnnumber3Bayer matrix size dimension (1 for 2x2, 2 for 4x4, 3 for 8x8).
contnumber1.3Luma contrast multiplier.
biasnumber0Luminance offset bias.
animnumber0Flicker animation noise frequency.
modenumber0Color mapping mode (0 for palette mix, 1 for quantized source).
radnumber0.22Radius of the interactive pointer reveal spotlight.
softnumber0.18Edge softness feathering of the pointer reveal lens.
rvnumber1Reveal lens blend amount (0 to keep fully dithered).
c0string"#0a0a0f"Hex darkest shadow palette tone.
c1string"#2d3bff"Hex mid-low palette tone.
c2string"#ff6a3d"Hex mid-high palette tone.
c3string"#f6f1e6"Hex brightest highlight palette tone.
backgroundHTMLCanvasElement | HTMLImageElement | stringproceduralCustom background image URL or canvas source.
pausedbooleanfalsePause animation loop manually.