import { type Plane } from "./turn.kit.ts"; import type { LightingOptions, LightingPreset } from "./types.ts"; /** The named colours of light: `wash`, `aisles` and `colors` take these by name (ours, a little saturated, for a light seen on dark). */ export declare const LIGHT_COLORS: { readonly white: "#fff6e6"; readonly amber: "#ffb830"; readonly purple: "#9b4dff"; readonly magenta: "#ff2bd6"; readonly blue: "#2b7bff"; readonly cyan: "#27d6ff"; }; /** How dark the house is: `half` (a light veil, the game's), `dim` (the night's) or `dark` (a show's). */ export type House = "half" | "dim" | "dark"; /** * A named lighting. `house` is how dark the stands are; `aisles` how the aisles are lit (`none`, small `dots`, or a `beam` of light from above down each); `pool` whether a pool of light lies on the floor round the surface; `wash` and `beam` are the colours * of the light on the surface and of the beams: a colour (a name of `LIGHT_COLORS`), or `home` and `away`, the teams' colours where the options have them (`crowd.home` and `crowd.away`, the colours of a score's teams), else `fallback`'s. */ export interface LightPreset { house: House; aisles: "none" | "dots" | "beams"; pool: boolean; wash?: keyof typeof LIGHT_COLORS | "home" | "away"; beam?: keyof typeof LIGHT_COLORS | "home" | "away"; /** What `home` and `away` are where the options name no team colour. */ fallback?: { home: keyof typeof LIGHT_COLORS; away: keyof typeof LIGHT_COLORS; }; } /** * The named lightings. `night`: the calm dim house with small lights along the aisles. `game`: white light, the house half lit, a pool of light round the surface. `lightsDown`: the house nearly black, a white beam down each aisle. `intro`: the * house dark, the home team's colour washed over the surface and the visitors' (the second colour) in the beams. `concert`: warm amber beams and a purple surface. (The `celebration` of the plan, colours chasing round the bowl, is a later one.) */ export declare const LIGHT_PRESETS: Readonly>; export declare const LIGHTING_PRESETS: readonly LightingPreset[]; /** The lighting as asked, with every part's value. */ export interface Lighting { preset: LightingPreset; house: House; aisles: "none" | "dots" | "beams"; pool: boolean; /** The colour of the beams. */ beam: string; /** The surface's colour of light (none for the surface as it is). */ wash: string | undefined; } /** The teams' colours the options have: a score's teams' `color`, over which a crowd's `home` and `away` stand. */ export declare function teamColors(o: object, crowd?: { home?: string; away?: string; }): { home?: string; away?: string; }; /** * The lighting an option asks for: a preset's name, `true` for the first (night), or `{ preset, colors, aisles, wash }`, or `undefined` for none (false, nothing, an unknown name). A colour comes from, in order: `wash` or `aisles`, `colors` (the first * is what the preset's `home` is, the second its `away`), the teams' colours (`team`), the preset's own. */ export declare function resolveLighting(ask: LightingOptions | undefined | null, team?: { home?: string; away?: string; }): Lighting | undefined; /** How far the pool of light round the surface reaches beyond its box, in feet, and the share of the pool that is bright (the surface's own edge). The surface itself stays as drawn: the pool is brightest just outside its markings. */ export declare const POOL: { readonly reach: 20; readonly edge: 0.7; readonly strength: 0.34; }; /** The pool of light on the floor round the playing surface: a flat plane under the seats with a radial gradient that is clear over the middle (the markings stay as they are) and glows round its edge. */ export declare function lightPool(id: string, box: { x: number; y: number; w: number; h: number; }, z: number, color?: string): Plane; /** The beam of a stair aisle, lit from above: the aisle's line drawn three times, wide and faint, narrower, and a bright core, so that the light falls off over the steps either side; a vomitory (`wide`) is a broader beam. Two thin lines beside it are the rails. Feet along the plane. */ export declare const BEAM: { readonly widths: readonly [7, 3.8, 1.5]; readonly opacity: readonly [0.1, 0.22, 0.95]; readonly rail: 2.3; readonly railWidth: 0.35; readonly railOpacity: 0.6; readonly wide: 1.6; }; export declare function beamSvg(from: readonly [number, number], to: readonly [number, number], color: string, cls: string, wide?: boolean): string; /** The lit edge of a step: the front of a piece of a tier, from `from` to `to`, a thin bright line. */ export declare const edgeSvg: (from: readonly [number, number], to: readonly [number, number], color: string, cls: string) => string; /** The wash of light on the playing surface: a flat plane over the surface's box, a colour that is brighter over the middle and weaker at the edge, never so strong that the markings under it are lost (`WASH` says how much). */ export declare const WASH: { readonly middle: 0.46; readonly edge: 0.26; }; export declare function lightWash(id: string, box: { x: number; y: number; w: number; h: number; }, z: number, color: string, round?: number): Plane;