From 3dd7121be6a9edd02c04e2346a8f140b3f785b6d Mon Sep 17 00:00:00 2001 From: im2 Date: Wed, 22 May 2024 08:59:03 +0800 Subject: [PATCH] change the dimension to 600x600 --- src/key2svg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/key2svg.js b/src/key2svg.js index 1cdbf7e..4f6639c 100644 --- a/src/key2svg.js +++ b/src/key2svg.js @@ -53,7 +53,7 @@ export function generateSVG(publicKey, svg) { const numberOfCurves = 5; for (let i = 0; i < numberOfCurves; i++) { // Generate path using valid numbers - const d = `M${rng.next() * 800},${rng.next() * 600} C${rng.next() * 800},${rng.next() * 600} ${rng.next() * 800},${rng.next() * 600} ${rng.next() * 800},${rng.next() * 600}`; + const d = `M${rng.next() * 600},${rng.next() * 600} C${rng.next() * 600},${rng.next() * 600} ${rng.next() * 600},${rng.next() * 600} ${rng.next() * 600},${rng.next() * 600}`; // console.log("Path:", d); drawBezier(svg, { ...params, d }); }