From 46cc599fc0b8096bd9cac6b9ac4ecc8173173b9f Mon Sep 17 00:00:00 2001 From: Jochen Jacobs Date: Tue, 12 Nov 2024 15:39:20 +0100 Subject: [PATCH] remove color from Util --- src/util/Util.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/util/Util.ts b/src/util/Util.ts index cb6cb057..940a7853 100644 --- a/src/util/Util.ts +++ b/src/util/Util.ts @@ -26,11 +26,3 @@ export function mutateWithDefault(map: Map, key: K, initialValue: V, return value } -export type Color = [number, number, number] - -export function intToRgb(n: number): Color { - const r = (n >> 16) & 255 - const g = (n >> 8) & 255 - const b = n & 255 - return [r / 255, g / 255, b / 255] -}