diagrams-qrcode-1.3: Draw QR codes to SVG, PNG, PDF or PS files.

Safe HaskellNone
LanguageHaskell98

Diagrams.QRCode

Synopsis

Documentation

pathList :: (Bounded a, Eq a, Integral ix) => [((ix, ix), a)] -> Path V2 Double Source

Convert a QR code represented as a list of bounded values into a Path. minBound values are considered to be "off", while every other value is considered to be "on".

pathMatrix :: (Bounded a, Eq a) => [[a]] -> Path V2 Double Source

Same as pathList, but from a matrix represented as a list of lists.

pathArray :: (Bounded a, Eq a, Integral ix, Ix ix) => Array (ix, ix) a -> Path V2 Double Source

Same as pathList, but from an array.

stroke :: (Backend b V2 Double, Renderable (Path V2 Double) b) => Path V2 Double -> QDiagram b V2 Double Any Source

Stroke using default QR code colors (black on white) and with the "quiet" region.