Skip to content

Commit

Permalink
feat(export svg): default to a white fill
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Nov 19, 2020
1 parent a38c990 commit 3c11703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qr-code/export/svg.cr
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# https://github.com/samvincent/rqrcode-rails3
# https://github.com/whomwah/rqrcode/blob/master/lib/rqrcode/export/svg.rb
class QRCode
def as_svg(offset = 0, color = "000", shape_rendering = "crispEdges", module_size = 11, standalone = true, fill : String? = nil)
def as_svg(offset = 0, color = "000", shape_rendering = "crispEdges", module_size = 11, standalone = true, fill : String? = "fff")
# height and width dependent on offset and QR complexity
dimension = (module_count * module_size) + (2 * offset)

Expand Down

0 comments on commit 3c11703

Please sign in to comment.