Generate a random pattern on load

This commit is contained in:
arne 2024-07-20 23:09:36 +02:00
commit bc99313c2c

View file

@ -13,8 +13,8 @@ const height_ = 594
const cellSize_ = 12
const padding_ = 5 // * cellSize
const xSeeds_ = "101110100101100"
const ySeeds_ = "101001111001110000101"
const xSeeds_ = Math.random().toString(2).substring(46, 54)
const ySeeds_ = Math.random().toString(2).substring(46, 54)
const unit_ = 'mm'
// turn these into reactive values to trigger re-rendering on change