Open mirabledictu opened 3 years ago
Every time you render a rectangle a new random rectangle is generated. If you want to have most consistent rendering, you should provide a seed number. Seed could be any integer but you can always ask rough to create a new seed for you.
node = roughSVG.rectangle(startX, startY, endX - startX, endY - startY, { seed: rough.newSeed() })
Currently, this is how I do it
This makes the rectangle have shaky animation. Is there a good example of this? Or am I missing a method?