Skip to main content

Prism

A white beam splits into a spectrum through a glass prism. Aim the source with the cursor; dispersion follows the angle.

  • 5.5 KB .bexode
  • 5 live inputs
  • Responsive fit Layout
Live runtime

Use it

The code follows your customizations. Install with npm i exodeui.

import { ExodeUICanvas } from 'exodeui';

// prism.bexode goes in /public (download it below)
export function Prism() {
  return (
    <ExodeUICanvas
      src="/prism.bexode"
      fit="Layout"   // responsive: redraws at any container size
      autoPlay
      interactive
      style={{ width: '100%', height: 560 }}
    />
  );
}

Inputs

InputTypeDefaultRange
titleTextOne source. Every colour.—
speedNumber10.1 – 3
accentText#ffffffhex colour
bgText#060608hex colour
textText#eeeef2hex colour