Skip to content

Commit

Permalink
remove color from Util
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobsjo committed Nov 12, 2024
1 parent b4e07b8 commit 46cc599
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/util/Util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,3 @@ export function mutateWithDefault<K, V>(map: Map<K, V>, 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]
}

0 comments on commit 46cc599

Please sign in to comment.