Add backup comparator test harness
This commit is contained in:
parent
98eb6dec68
commit
84f1d98020
17 changed files with 339 additions and 124 deletions
|
@ -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
|
||||
}%)`;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue