Docs/Fondos

Ink Flow

MIT

Drag to paint swirling ribbons of ink through a real fluid field — eddies keep evolving after you let go

Cargando shader…

Ajústalo

1
0.3
1
0

Instalación

Terminal
npx shadcn@latest add https://<tu-dominio>/r/shader-ink-flow.json

Crea components/bastard/ShaderInkFlow.tsx e instala shaders. Más opciones

Uso

Demo.tsx
1import ShaderInkFlow from '@/components/bastard/ShaderInkFlow';
2
3export default function Demo() {
4 return (
5 <ShaderInkFlow
6 colorMode="rainbow"
7 colorSpeed={1}
8 color="#ff2d7e"
9 color1="#4338ff"
10 color2="#ff2d7e"
11 color3="#19e3ff"
12 colorSpace="oklab"
13 radius={0.3}
14 force={1}
15 curl={0}
16 />
17 );
18}

Props

PropTipoPor defectoDescripción
colorMode'rainbow' | 'single' | 'custom'"rainbow"Color Mode
colorSpeednumber1Color Speed
colorstring"#ff2d7e"Brush Color
color1string"#4338ff"Color 1
color2string"#ff2d7e"Color 2
color3string"#19e3ff"Color 3
colorSpace'linear' | 'oklch' | 'oklab' | 'hsl' | 'hsv' | 'lch'"oklab"Color Space
radiusnumber0.3Radius
forcenumber1Force
curlnumber0Swirl

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

Créditos

Basado en Ink Flow · Shaders.com, adaptado para BSTRD UI.Licencia: MIT. Puedes usarlo, modificarlo y venderlo, conservando el aviso de copyright que va dentro del archivo.