aruZeta / QRgen

A QR code generation library.
https://aruzeta.github.io/QRgen/
MIT License
103 stars 8 forks source link

Fix: Inner alignment patterns have wrong radius #40

Closed aruZeta closed 1 year ago

aruZeta commented 1 year ago

With this code:

benchmarkTest "Testing rounded alignment patterns":
  let qr = newQR("https://github.com/aruZeta/QRgen")
  writeFile(
    qr.renderImg("#1d2021", "#98971a", alRad = 50),
    "build" / "testingRoundedAlPatterns.png"
  )

Before the fix: testingRoundedAlPatterns

After the fix: testingRoundedAlPatterns