Add backup comparator test harness

This commit is contained in:
Fedor Indutny
2024-09-03 10:18:15 -07:00
committed by GitHub
parent 98eb6dec68
commit 84f1d98020
17 changed files with 339 additions and 124 deletions
+7 -4
View File
@@ -46,14 +46,17 @@ export function getHSL(
{
hue,
saturation,
luminance,
}: {
hue: number;
saturation: number;
luminance?: number;
},
adjustedLightness = 0
): string {
return `hsl(${hue}, ${saturation}%, ${adjustLightnessValue(
calculateLightness(hue),
adjustedLightness
)}%)`;
return `hsl(${hue}, ${saturation}%, ${
luminance == null
? adjustLightnessValue(calculateLightness(hue), adjustedLightness)
: luminance * 100
}%)`;
}