(v: number, min: number, max: number)
| 1 | import type { HexColor, OklchColor } from "./types" |
| 2 | |
| 3 | function clamp(v: number, min: number, max: number) { |
| 4 | return Math.max(min, Math.min(max, v)) |
| 5 | } |
| 6 | |
| 7 | function hue(v: number) { |
| 8 | return ((v % 360) + 360) % 360 |
no outgoing calls
no test coverage detected