Skip to content

Commit

Permalink
Fix hsl() syntax for Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
stasm committed Sep 13, 2024
1 parent 14aca0c commit 4ce7672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/color.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export function color_from_seed(seed: number): string {
seed /= Math.PI;
let hue = seed - Math.floor(seed);
return `hsl(${Math.floor(hue * 360)} 50 40)`;
return `hsl(${Math.floor(hue * 360)} 50% 40%)`;
}

0 comments on commit 4ce7672

Please sign in to comment.