Docs/Fondos

Dithering

Apache-2.0

Shader de Paper Shaders (Dithering), con 6 presets.

Cargando shader…

Ajústalo

1
2

Instalación

Terminal
npx shadcn@latest add https://<tu-dominio>/r/paper-dithering.json

Crea components/bastard/PaperDithering.tsx e instala @paper-design/shaders-react. Más opciones

Uso

Demo.tsx
1import PaperDithering from '@/components/bastard/PaperDithering';
2
3export default function Demo() {
4 return (
5 <PaperDithering
6 speed={1}
7 colorBack="#000000"
8 colorFront="#00b2ff"
9 shape="sphere"
10 type="4x4"
11 size={2}
12 />
13 );
14}

Props

PropTipoPor defectoDescripción
speednumber1Speed
colorBackstring"#000000"Color Back
colorFrontstring"#00b2ff"Color Front
shapestring"sphere"Shape
typestring"4x4"Type
sizenumber2Size

Aquí aparecen las props ajustables. El componente acepta más: revisa el código fuente.

Créditos

Basado en Dithering · Paper Shaders, adaptado para BSTRD UI.Licencia: Apache-2.0. Puedes usarlo, modificarlo y venderlo, conservando el aviso de copyright que va dentro del archivo.