o
odin.langpkg.dev
packages / library / qr_gen_odin

qr_gen_odin

d1432c5library

No description provided.

MIT · updated 6 months ago

QR Generator written Odin

This is a mostly spec-compliant, relatively fast QR-Code generator written in Odin.

Example

size := qr.bitmap_width(len(data), error_correction_level) or_else panic("Input to large")
pixels := make([]u8, size * size)
qr.generate_bitmap(data, pixels, error_correction_level)
// do something with `pixels`

Attributions

All the tables in tables.odin come from https://www.thonky.com/qr-code-tutorial + the tutorial was also used as a reference for the implementation.