Add case icons. Clean up !cases. Allow customizing case colors and icons.

This commit is contained in:
Dragory 2020-08-11 04:16:06 +03:00
parent ad24d166ce
commit 131a79ffd4
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
24 changed files with 138 additions and 22 deletions

View file

@ -0,0 +1,6 @@
export function intToRgb(int: number): [number, number, number] {
const r = int >> 16;
const g = (int - (r << 16)) >> 8;
const b = int - (r << 16) - (g << 8);
return [r, g, b];
}