hsvToRgb
Convert HSV/HSB (hue in degrees, saturation and value 0-100) to 8-bit sRGB (0-255, each channel rounded to an integer). Any finite hue is accepted and wrapped.
import { hsvToRgb } from '@pbroom/color-kit';hsv.ts:129function hsvToRgb(hsv: Hsv): Rgb;Parameters
Returns
RgbA new Rgb with integer channels
Example
import { hsvToRgb } from '@pbroom/color-kit';
hsvToRgb({ h: 210, s: 50, v: 80, alpha: 1 }); // → { r: 102, g: 153, b: 204, alpha: 1 }