GitHub
Translate

Opens Google Translate in a new tab. Website translation availability varies by region. Details

WebGL2 Shader • Ping-Pong FBO

Ink

Simulates pigment dispersing in water with curl vorticity tendrils, subtle optical UV refraction across ink density gradients, and backdrop-aware Additive Color Blending (ACD).

Live Playground

Ping-Pong FBO Brush to Paint Ink
Dissipation 0.982
Curl 1.75
Radius 0.004

Where to Use It

Editorial & Fashion Storytelling

Slow-dissipating pigment tendrils create an organic watercolor mood behind serif headlines and campaign lookbooks.

Art Portfolios & Galleries

Pair with bgColor="#ffffff" for archival paper ink washes or deep navy backdrops for glowing ink swirls.

Usage (Copy & Paste)

<section
  data-fx="ink"
  data-fx-dissipation="0.982"
  data-fx-radius="0.004"
  data-fx-curl="1.75"
  style="min-height: 60vh;"
>
  <div style="position: relative; z-index: 1;">Ink Canvas</div>
</section>
<script src="https://unpkg.com/@votax572002/fluxfx/dist/fluxfx.min.js"></script>
'use client';
import { Ink } from '@votax572002/fluxfx/react';

export function InkSection() {
  return (
    <Ink dissipation={0.982} radius={0.004} curl={1.75} style={{ minHeight: '60vh' }}>
      <h1>Ink Dispersion</h1>
    </Ink>
  );
}
import { FluxFX } from '@votax572002/fluxfx';

FluxFX.apply(el, 'ink', {
  dissipation: 0.982,
  radius: 0.004,
  curl: 1.75,
  colors: ['#1e1b4b', '#0284c7', '#e11d48'],
});

How It Works (Flowchart)

Vorticity Curl uCurl swirls velocity Viscosity + Ink Hold pow(uDissipation, dt*60) Gradient Refraction Offset UV by ink gradient Pigment + Rim Dark/light water blend

Props & Attributes

HTML AttributeJS / React PropTypeDefaultDescription
data-fx-dissipationdissipationnumber0.982Ink retention factor (0.92–0.996).
data-fx-radiusradiusnumber0.004Brush radius for cursor ink strokes.
data-fx-curlcurlnumber1.75Vorticity / tendril swirl intensity.
data-fx-colorscolorsstring | string[]['#1e1b4b','#0284c7','#e11d48']3-stop ink pigment palette.