mirror of
https://gh-proxy.org/https://github.com/tiajinsha/JKVideo
synced 2026-07-08 23:43:52 +08:00
1
This commit is contained in:
@@ -19,6 +19,8 @@ export function parseDanmakuXml(xml: string): DanmakuItem[] {
|
||||
return items.sort((a, b) => a.time - b.time);
|
||||
}
|
||||
|
||||
|
||||
export function danmakuColorToCss(color: number): string {
|
||||
return '#' + (color >>> 0 & 0xFFFFFF).toString(16).padStart(6, '0');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user