Loading…
← All components

Background · Fluid

Fluid Chroma Warp

A full-screen GPU fluid simulation (Navier-Stokes): iridescent oil swirling on black ink, stirred by the cursor's speed, with chromatic fringes along the flow.

<FluidChromaWarp />Live

Customize

Push 1#7c3aed
Push 2#22d3ee
Push 3#ec4899
Push 4#f5b94a

Installation

Use it in your project

Or skip the copy-paste

One command: writes the file and installs the dependencies.

$ npx deepui-cli add fluid-chroma-warp

Pro component: run npx deepui-cli login first with a token from your library.

01

Install

The 3D packages this component is built on.

$ npm install three @react-three/fiber && npm install -D @types/three
02

Add the component

One self-contained file: create components/FluidChromaWarp.tsx and paste it in.

03

Drop it in a page

Updated live with the settings above.

app/page.tsx
1import FluidChromaWarp from "@/components/FluidChromaWarp";
2
3export default function Section() {
4 return (
5 // The component fills this box: give it a position and a height
6 <div style={{ position: "relative", width: "100%", height: "100vh" }}>
7 <FluidChromaWarp
8 fluidViscosity={0.55}
9 chromaticAberration={0.5}
10 cursorInfluenceRadius={0.4}
11 waveTurbulence={0.8}
12 colorPalette={["#7c3aed", "#22d3ee", "#ec4899", "#f5b94a"]}
13 />
14 </div>
15 );
16}
Next componentHyperdimensional Carousel→