Minor improvements xd

This commit is contained in:
Andras Schmelczer 2023-05-21 19:19:12 +01:00
parent f3f2547724
commit 0e97e54ffe
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
21 changed files with 189 additions and 184 deletions

View file

@ -6,7 +6,7 @@ export const hsl = (hue: number, saturation: number, lightness: number): vec3 =>
hue /= 360;
saturation /= 100;
lightness /= 100;
let r, g, b;
let r: number, g: number, b: number;
if (saturation == 0) {
r = g = b = lightness;

View file

@ -1,9 +0,0 @@
export const hash = (state: number): number => {
state ^= 2747636419;
state *= 2654435769;
state ^= state >> 16;
state *= 2654435769;
state ^= state >> 16;
state *= 2654435769;
return state / 4294967295.0;
};