mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 23:27:09 +00:00
Add button to generate random color (#403)
This commit is contained in:
@@ -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']))
|
||||
|
||||
Reference in New Issue
Block a user