toSvg
fun BitMatrix.toSvg(moduleSize: Int = 10, quietZone: Int = 4, dark: String = "#000000", light: String? = "#FFFFFF"): String
Renders a BitMatrix to a standalone SVG string: true vector output, no rasteriser, no platform. Each dark module becomes a 1×1 path cell, so the whole symbol is a single <path>.
Parameters
moduleSize
pixel size of one module (drives the SVG's width/height).
quietZone
margin around the code, in modules (the spec asks for 4).
dark
CSS colour for set modules.
light
CSS background colour, or null for a transparent background.