brush picker!

This commit is contained in:
りき萌 2025-06-19 13:48:07 +02:00
parent 9b82b211b4
commit c1612b2a94
12 changed files with 849 additions and 45 deletions

9
static/random.js Normal file
View file

@ -0,0 +1,9 @@
const charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_";
export function randomId(length = 32) {
let r = "";
for (let i = 0; i < length; ++i) {
r += charset.charAt(Math.floor(Math.random() * charset.length));
}
return r;
}