/** * Colour: the nineteen names and the calls that compute one. * * **The channel table is standing in for something that does not exist yet.** * `stdlib.md` 11.1 fixes the exact channel values of the named colours in the * library manifest and makes them part of the conformance suite; there is no * manifest in this repository, so the compiler carries a copy for the colours * it has to write into a declaration field before bar 0, and the engine carries * one for the colours a script computes on a bar. Two copies of one fact is * exactly what should not happen, and `tests/engine/colours.test.ts` asserts * they agree, so the day the manifest exists both are deleted rather than * reconciled. * * Every call that computes a colour rounds red, green and blue to a whole * number before it returns, halves away from zero, which `colour()` in the * value module does. Alpha is not rounded: it stays a binary64 number from 0 to * 1 and becomes a byte only at the contract boundary, where the conversion is * one way and is not a round trip (3.1). */ import type { Value } from '../values/index.js'; import type { ManifestEntry } from './binding.js'; /** The nineteen names, for a test that has to compare two tables. */ export declare const COLOUR_NAMES: readonly string[]; export declare function namedColour(name: string): Value; export declare const COLOUR_ENTRIES: readonly ManifestEntry[]; //# sourceMappingURL=colours.d.ts.map