Dithering
Apache-2.0Shader 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';23export default function Demo() {4 return (5 <PaperDithering6 speed={1}7 colorBack="#000000"8 colorFront="#00b2ff"9 shape="sphere"10 type="4x4"11 size={2}12 />13 );14}
Props
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
| speed | number | 1 | Speed |
| colorBack | string | "#000000" | Color Back |
| colorFront | string | "#00b2ff" | Color Front |
| shape | string | "sphere" | Shape |
| type | string | "4x4" | Type |
| size | number | 2 | Size |
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.