Voronoi
Installation
npm i @paper-design/shaders-react
Code
import { Voronoi } from '@paper-design/shaders-react';
<Voronoi
width={1280}
height={720}
colors={["#cc3333", "#cc9933"]}
colorGlow="#ffffff"
colorGap="#2e0000"
stepsPerColor={3}
distortion={0.4}
gap={0.04}
glow={0}
speed={0.5}
scale={0.5}
/>
Shader Props
Common Props
Description
Anti-aliased animated Voronoi pattern with smooth and customizable edges.
Notes
Thanks to Inigo Quilez for the amazing solution on Voronoi cell boundaries.