Skip to content

Commit

Permalink
Added support for lightColor in SVG QR codes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sem committed Mar 21, 2014
1 parent 07f829d commit 31ba7cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qrcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ var QRCode;
svg.setAttributeNS("http:https://www.w3.org/2000/xmlns/", "xmlns:xlink", "http:https://www.w3.org/1999/xlink");
_el.appendChild(svg);

svg.appendChild(makeSVG("rect", {"fill": _htOption.colorLight, "width": "100%", "height": "100%"}));
svg.appendChild(makeSVG("rect", {"fill": _htOption.colorDark, "width": "1", "height": "1", "id": "template"}));

for (var row = 0; row < nCount; row++) {
Expand Down

0 comments on commit 31ba7cc

Please sign in to comment.