mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-19 20:59:37 +08:00
修复错误
This commit is contained in:
parent
d36569e2d1
commit
6f59ea51ac
@ -261,5 +261,7 @@ export function ensureArray<T>(arr: T): T extends any[] ? T : T[] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function pColor(color: string) {
|
export function pColor(color: string) {
|
||||||
return core.arrayToRGBA(parseColor(color));
|
const arr = parseColor(color);
|
||||||
|
arr[3] ??= 1;
|
||||||
|
return `rgba(${arr.join(',')})`;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user