Skip to content

Pure-C# ISO 18004 encoder

TerminalQR

A from-scratch QR encoder in pure C#, rendered two ways. Both symbols encode https://kull.games/ - scan either with your phone.

Terminal art · scale 1

        ██████████████    ██  ██████        ██████████████
        ██          ██  ████    ████    ██  ██          ██
        ██  ██████  ██  ██  ██████  ██████  ██  ██████  ██
        ██  ██████  ██  ██    ██  ████  ██  ██  ██████  ██
        ██  ██████  ██    ██  ██████    ██  ██  ██████  ██
        ██          ██          ██████  ██  ██          ██
        ██████████████  ██  ██  ██  ██  ██  ██████████████
                        ██████      ██  ██
        ██          ██  ██      ██        ████    ██████
        ████████      ██        ████████  ██  ██████████
          ████  ████████  ██████████████████████████  ████
        ████          ██  ████  ████      ████  ████    ██
          ████    ████    ██  ██████  ████  ████        ██
        ████  ██  ██  ██  ████        ████    ██      ██
        ██  ██████  ████  ████████    ██████  ██████  ████
        ██    ██████  ██    ████      ██    ████  ████  ██
        ██          ████  ██████      ████████████  ██
                        ██████  ██████  ██      ██
        ██████████████  ████  ██        ██  ██  ██      ██
        ██          ██      ██  ████  ████      ██    ██
        ██  ██████  ██      ██  ██  ██████████████  ██  ██
        ██  ██████  ██      ██      ██    ████        ████
        ██  ██████  ██    ████████      ██        ████  ██
        ██          ██        ██    ██  ████  ████      ██
        ██████████████    ██      ████████████    ██    ██        

one glyph-pair per module

PNG render · scale 8

QR code encoding https://kull.games/

hand-written PNG codec output

33×33 modules, error-correction level M. Encoder, Reed-Solomon ECC, mask selection and PNG codec are all hand-written in C# with zero dependencies outside the .NET BCL (OnlyCSharp.ComputerGraphics.Barcode + .ImageCodecs). This page is the static, SSR-rendered output of the KullGames.TerminalQR console app.