Matrix indexed as mask[x][y]; false hides the segment at [x, y]
The QR code occupies [startX, startX + count) × [startY, startY + count), with count as passed to Plugin.applyMask; it must lie inside the mask with the requested padding and its corners visible, or an error is thrown. Remaining segments are filled pseudo-randomly.
With a mask, the shape is square and the QR code is drawn from [0, 0], with extra segments outside the viewBox. Options that extend the image size are ignored, except the image margin in ImageMode.background.
Mask column where the QR code starts
Mask row where the QR code starts
OptionalfitCenter the gradient at the mask bounds instead of the QR code (scaled proportionally either way)
QR code size in segments
Segment size
Position of the mask's [0, 0] segment within the SVG
Mask applied to the QR code, with its rendering data