mirror of
https://fietkau.software/QRSVG.git
synced 2024-12-04 16:23:08 -06:00
Bugfix: Mosaic shape style now handles quiet zones larger than 1 correctly
This commit is contained in:
parent
3aea1e3c89
commit
1c75bf745e
|
@ -414,7 +414,7 @@ function calculateTileStyleContour(bitmask, margin, style) {
|
|||
let size = 0.9; // relative to grid size
|
||||
let maxAngle = Math.PI * 0.03;
|
||||
let angle = (prng.next() * 2 - 1) * maxAngle;
|
||||
newPathSpec.push('M' + (x + 1) + ' ' + (y + 1));
|
||||
newPathSpec.push('M' + (x + margin) + ' ' + (y + margin));
|
||||
let tileCorners = [
|
||||
rotatePoint(0.5 - (size / 2), 0.5 - (size / 2), angle),
|
||||
rotatePoint(0.5 + (size / 2), 0.5 - (size / 2), angle),
|
||||
|
|
Loading…
Reference in New Issue
Block a user