function hsvToRgb(h, s, v) {
	let r, g, b
	const i = Math.floor(h / 60)
	const f = h / 60 - i
	const p = v * (1 - s)
	const q = v * (1 - f * s)
	const t = v * (1 - (1 - f) * s)

	/* eslint-disable style/max-statements-per-line */
	switch (i % 6) {
		case 0: r = v; g = t; b = p; break
		case 1: r = q; g = v; b = p; break
		case 2: r = p; g = v; b = t; break
		case 3: r = p; g = q; b = v; break
		case 4: r = t; g = p; b = v; break
		case 5: r = v; g = p; b = q; break
	}
	/* eslint-enable style/max-statements-per-line */

	return [Math.round(r * 255), Math.round(g * 255), Math.round(b * 255)]
}
Converts HSV color values to RGB
@param {number} h - Hue (0-360)
@param {number} s - Saturation (0-1)
@param {number} v - Value (0-1)
@returns {number[]} - Array of [r, g, b] values (0-255)