1 unstable release

0.1.0 Sep 5, 2024

#3 in #waves

Download history 66/week @ 2024-08-30 76/week @ 2024-09-06

142 downloads per month

Custom license

53KB
1.5K SLoC

fuqr

feeling unemployed qr code generator

Examples

All example code is WIP and in a very unpolished state.

/examples/scale.rs

Scaling modules based on position.

Circle Stripes Waves
circle stripes waves

/examples/weave.rs

No need to stick to a boring pixel grid.

Thick Thin Diagonal
thick thin diagonal

/examples/layers.rs

Layering is neat, but it can seriously degrade scanning ability if done without care.

See Halftone QR Codes, Micrography QR Codes, Amazing QR for more thoughtful implementations with high scannability.

Background Minimalist Improved scannability
background thin diagonal

Misc bugs and experiments

Have Some More
bathroom diamonds mmm
mountains diamonds

Other

TODO

  • send typed array to wasm

Benchmarks

There are definitely easy perf wins, but I was surprised how decent this performs.

Test Implementation Time (µs) / (ms) Compared to fast_qr
V03H fuqr 73.210 - 76.356 µs ~1.1 slower
qrcode 505.68 - 517.48 µs ~7.4 slower
fast_qr 69.313 - 71.027 µs 1.0 (Fastest)
V10H fuqr 363.13 - 369.72 µs ~1.4 slower
qrcode 2.2020 - 2.2414 ms ~8.5 slower
fast_qr 260.03 - 270.07 µs 1.0 (Fastest)
V40H fuqr 2.9916 - 3.0453 ms ~1.3 slower
qrcode 21.117 - 21.508 ms ~9.0 slower
fast_qr 2.3923 - 2.4474 ms 1.0 (Fastest)

Dependencies

~0–1.2MB
~18K SLoC