mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-22 09:15:03 +00:00
Add case icons. Clean up !cases. Allow customizing case colors and icons.
This commit is contained in:
parent
3a27eb64a9
commit
425f6e6674
24 changed files with 138 additions and 22 deletions
6
backend/src/utils/intToRgb.ts
Normal file
6
backend/src/utils/intToRgb.ts
Normal 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];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue