Plasma Glow
Web (React)
Glowing plasma with bloom, chromatic aberration and a vignette.
An animated plasma field with a bloom pass, a touch of chromatic aberration and a dark vignette. It fills its positioned parent and freezes its animation when the user prefers reduced motion. Built on the shaders library (MIT) and rendered with WebGPU.
Plasma Glow
Installation
CLI
npx @modus-ui/cli add plasma-glowManual
- Install
shaderswithnpm install shaders. - Copy the code from the component tab.
- Create a file at
components/ui/plasma-glow.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
colorA | string | "#0b0221" | Dark plasma colour. |
colorB | string | "#ff3fa4" | Bright plasma colour. |
speed | number | 1 | Animation speed. |
density | number | 1 | Density of the plasma bands. |
warp | number | 1 | Amount of domain warping. |
glow | number | 0.6 | Bloom intensity. |
aberration | number | 0.3 | Chromatic aberration strength. |
Comments