Triangle LED Hero

Analytic edge-glow triangle with LED emitters, floor radiance, and interactive color deploy. Canvas-scoped pointer input drives the lighting while an accessible mode selector chooses highlighted edges.

Open fullscreen
export type TriangleLedMode = -1 | 0 | 1 | 2;
 
export interface TriangleLedControls {
  readonly mode: TriangleLedMode;
}
 
export const DEFAULT_TRIANGLE_LED_CONTROLS: TriangleLedControls = { mode: -1 };
 
export function isTriangleLedMode(value: number): value is TriangleLedMode {
  return value === -1 || value === 0 || value === 1 || value === 2;
}