Add button to generate random color (#403)

This commit is contained in:
YanisBft
2023-07-13 21:54:10 +02:00
committed by GitHub
parent d9f7fe0ab4
commit a150d50775
4 changed files with 8 additions and 1 deletions

View File

@@ -40,6 +40,10 @@ export function generateUUID() {
})
}
export function generateColor() {
return Math.floor(Math.random() * 16777215)
}
export function newSeed(model: DataModel) {
const seed = Math.floor(Math.random() * (4294967296)) - 2147483648
const dimensions = model.get(new Path(['dimensions']))