From bc99313c2c6988432849b114fd386c6eae37a1f5 Mon Sep 17 00:00:00 2001 From: arne Date: Sat, 20 Jul 2024 23:09:36 +0200 Subject: [PATCH] Generate a random pattern on load --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index 22ecfd2..fac22da 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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