This commit is contained in:
Nathan Bierema 2024-06-09 19:01:42 -04:00
parent 361ada8e67
commit 171b898f51

View File

@ -11,6 +11,6 @@ export default (
color: string,
effect: 'fade' | 'lighten' | 'alpha',
val: number,
) => (new Color(color)[effect](val) as Color).hsl().string();
) => new Color(color)[effect](val).hsl().string();
// TODO: memoize it