/** * Copyright (c) 2026 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author ReliaSolve * * Adapted from kin-parser.ts file from the NGL project: * @author Alexander Rose * Adapted from hsl.ts in this same directory: * @author David Sehnal */ import type { Color } from '../color.js'; import { Rgb } from './rgb.js'; export { Hsv }; /** Hsv tuple: [h, s, v] * - h in [0,360] degrees * - s in [0,100] percent * - v in [0,100] percent */ interface Hsv extends Array { [d: number]: number; '@type': 'hsv'; length: 3; } declare function Hsv(): Hsv; declare namespace Hsv { function zero(): Hsv; /** Copy values from an array-like 3-tuple into `out`. */ function fromArray(arr: ArrayLike): Hsv; function toColor(hsv: Hsv): Color; function toRgb(out: Rgb, hsv: Hsv): Rgb; }