EQRCode v0.1.1 EQRCode.Svg View Source
Render the QR Code matrix in SVG format
qr_code_content
|> EQRCode.encode()
|> EQRCode.svg(%{color: "#cc6600", shape: "circle", width: 300})
You can specify the following attributes of the QR code:
color
: In hexadecimal format. The default is#000
shape
: Onlysquare
orcircle
. The default issquare
width
: The width of the QR code in pixel. Without the width attribute, the QR code size will be dynamically generated based on the input string.
Default options are %{color: "#000", shape: "square"}
.
Link to this section Summary
Functions
Return the SVG format of the QR Code
Link to this section Functions
Return the SVG format of the QR Code