Skip to main content

Module qr_code

Module qr_code 

Source
Expand description

A QR code, as a picture: for a wallet on another device to scan.

Always dark on white, whatever the theme: that is what scanners expect, and a code in the theme’s colours may not have the contrast.

Constants§

MODULE_PIXELS 🔒
How many pixels a side each module of the code is in the picture. The view scales the picture; this only has to be enough for the edges to stay sharp.
QUIET_MODULES 🔒
How many modules of white are left around the code. A scanner needs four to tell where the code ends.

Functions§

pixels 🔒
The code for data as square RGBA pixels: how many a side, and the pixels. None if data is more than a QR code holds.
qr_code
The QR code for data, as a picture. None if data is more than a code holds.