Spectral Ribbon
Install the component, then paste your configured usage. Your settings are included in the code below.
npx arclen-ui add prism-flow --settings eyJwYWxldHRlIjoiZW1iZXIiLCJiYWNrZ3JvdW5kIjoiIzA1MDUwNyIsInNwZWVkIjoyLjcsIndpZHRoIjoyLjc1LCJzcHJlYWQiOjEuNDUsIndhcnAiOjEsImludGVuc2l0eSI6Mi4yNSwiZ3JhaW4iOjEuNzUsImVjaG8iOnRydWUsImZvbGxvd1BvaW50ZXIiOnRydWUsImVudHJhbmNlIjp0cnVlLCJjYXB0aW9uIjoiTGlnaHQsIGJlbnQiLCJyYWRpdXMiOjMyfQimport { SpectralRibbon } from "@/components/prism-flow";
export default function Example() {
return <SpectralRibbon {...{
"palette": "ember",
"background": "#050507",
"speed": 2.7,
"width": 2.75,
"spread": 1.45,
"warp": 1,
"intensity": 2.25,
"grain": 1.75,
"echo": true,
"followPointer": true,
"entrance": true,
"caption": "Light, bent",
"radius": 32
}} />;
}| Property | Type | Default |
|---|---|---|
palettePalette Options: ember (Ember), orchid (Orchid), lagoon (Lagoon), silver (Silver) | select | "ember" |
backgroundBackground | color | "#050507" |
speedTravel speed 0–5Step 0.1 | number | 2.7 |
widthRibbon width 0.2–5Step 0.05 | number | 2.75 |
spreadColor separation 0–4Step 0.05 | number | 1.45 |
warpBend 0–2.5Step 0.05 | number | 1 |
intensityLight intensity 0.2–4Step 0.05 | number | 2.25 |
grainFilm grain 0–2.5Step 0.05 | number | 1.75 |
echoEcho band | boolean | true |
followPointerFollow pointer | boolean | true |
entranceEntrance motion | boolean | true |
captionCaption | text | "Light, bent" |
radiusCorner radius 0–80Step 1 | number | 32 |
Spectral Ribbon draws a moving spectrum on a dark field. Move the pointer across the ribbon to pull it toward you. When the pointer leaves, the ribbon eases back into its path.
The **Palette** control switches between Ember, Orchid, Lagoon and Silver. **Color separation** fans the colors apart. **Echo band** adds a second, fainter curve. Lower **Travel speed** to zero to hold the ribbon’s shape while the grain continues to move.
Set **Caption** to an empty string for artwork alone. In React you can pass children to center your own content over the field. Give the parent a height to fill a taller section. The field has a 320px minimum height.
Reduced motion holds the artwork at a single phase and skips the entrance. Animation pauses offscreen and in hidden tabs. Browsers without WebGL display a static gradient in the selected palette.
The fragment shader is adapted from Md Eftakher’s MIT-licensed PrismFlow. The package includes the MIT notice and the Geist font’s OFL notice.
The preview runs the component’s own JavaScript. It respects reduced motion and pauses when off screen. The HTML bundle includes a static fallback.
Every setting in this panel comes from the component manifest. Preview size, pause and replay stay in the inspector.