mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-05 12:54:09 +02:00
wip
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 4.0 KiB |
@@ -560,7 +560,7 @@ function addObject(ev: PointerEvent) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getHex(c: [number, number, number]) {
|
function getHex(c: [number, number, number]) {
|
||||||
return `#${c.map(x => (x * 255).toString(16).padStart(2, '0')).join('')}`;
|
return `#${c.map(x => Math.round(x * 255).toString(16).padStart(2, '0')).join('')}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getRgb(hex: string | number): [number, number, number] | null {
|
function getRgb(hex: string | number): [number, number, number] | null {
|
||||||
|
|||||||
Reference in New Issue
Block a user