This commit is contained in:
lcw
2025-09-07 23:50:16 +08:00
parent 232f7b7860
commit 00b2c8bf16
37 changed files with 7283 additions and 333 deletions

View File

@ -1,6 +1,15 @@
import ImageCompressor from "image-compressor.js";
// 生成10位数的随机数
export function generateRandom10Digits() {
// 生成范围在1000000000到9999999999之间的随机整数
const min = 1000000000;
const max = 9999999999;
return Math.floor(Math.random() * (max - min + 1)) + min;
}
// 随机颜色 - 把16进制的颜色换成rgba格式
export function choseRbgb(color, opcity) {
if (color) {