LIGHT. MATH. YOUR NEXT BUILD.
Chroma Glass
Luminous glass capsules and orbs drift through violet, lavender and mint light. Rounded volumes bend the color field and integrated photos, with soft studio reflections and a gentle response to the cursor.
Category: Glass / chromatic volumes.
Open Chroma Glass in the live editor to customize its palette, motion, and supported camera controls. Use Take the code to download the configured kit after signing in. Complete membership access is free during the current launch offer.
Presets
- Lilac:
#e3d8fa,#6814f5,#a9eacb - Glacier:
#d9ecfa,#2663d5,#aaf0e4 - Rose:
#f4deed,#b333cb,#ffd3a8
Shader and camera controls
- Glass shape (
chromaShape): 0 to 2. Default:1. - Drift speed (
speed): 0 to 0.5. Default:0.12. - Glass scale (
scale): 0.6 to 1.8. Default:1.34. - Tube length (
tubeLength): 0.25 to 2.5. Default:0.69. - Glass spacing (
spacing): 0.45 to 1. Default:0.66. - Refraction (
refraction): 0 to 1.5. Default:0.86. - Frost softness (
frost): 0 to 1. Default:0.71. - Studio reflections (
reflection): 0 to 1.5. Default:0.31. - Edge reflection (
edgeReflection): 0 to 1.5. Default:0.55. - Drift amount (
drift): 0 to 0.8. Default:0. - Hover influence (
interaction): 0 to 2. Default:0.92. - Fine grain (
grain): 0 to 0.035. Default:0.008. - Integrated photo (
photoMode): 0 to 1. Default:1. - Photo strength (
photoStrength): 0 to 1. Default:0.8. - Photo scale (
photoScale): 0.4 to 2. Default:1. - Grain (
noise): 0 to 0.3. Default:0. - Glow (
glow): 0 to 1.5. Default:0. - Glow radius (
glowRadius): 2 to 40. Default:14. - Blur (
blur): 0 to 24. Default:0. - Fade in · ms (
fadeIn): 0 to 10000. Default:0. - Fade delay · ms (
fadeDelay): 0 to 5000. Default:0. - Image opacity (
overlayOpacity): 0 to 1. Default:0.5. - Camera rotation (
cameraRotation): -180 to 180. Default:0. - Camera zoom (
cameraZoom): 0.4 to 3. Default:1. - Horizontal focus (
cameraX): -4 to 4. Default:0. - Vertical focus (
cameraY): -4 to 4. Default:0.
These ranges describe the published catalog version 673cf2d74fc64dea7d870e50092c7dc188feee0109b7334cc5e710d8d5ddebea. The website editor can curate or lock particular controls. The live editor and the current MCP settings schema are authoritative for available actions. Existing saved configurations remain supported.
Integration example
Download this shader's kit before running the example. The runtime is a local file from that kit, not a public CDN or npm package.
import { createBackground } from './shader-background.js';
const background = createBackground(
document.querySelector('#background'),
{
"effect": "chroma-glass",
"colors": [
"#e25b86",
"#ed3fd3",
"#1e13b8"
],
"chromaShape": 1,
"speed": 0.12,
"scale": 1.34,
"maxPixels": 700000,
"maxFPS": 30
}
);
// On view teardown:
// background.destroy();
Give the host an explicit size, preserve applicable stage CSS from the exported example, and keep content above the decorative canvas. JavaScript, React, and Next.js guides explain integration.
Motion, assets, and licensing
Test the finished page on your target devices, respect reduced motion, and use a pause control for persistent animation. Keep the license and notices included in your kit. Uploaded imagery needs its own usage rights. See performance and licensing.
