Closed tusharmehta3 closed 11 months ago
UPDATE: I changed the color of the qr code with the following command qrcode.image.svg.SvgPathImage.QR_PATH_STYLE["fill"] = "#ff0000"
But how can the background color be changed?
UPDATE 2: Managed to change the background color with the following command:
qrcode.image.svg.SvgPathImage.QR_PATH_STYLE["stroke"] = "#008000"
qrcode.image.svg.SvgPathImage.QR_PATH_STYLE["stroke-opacity"] = "0.2"
qrcode.image.svg.SvgPathImage.QR_PATH_STYLE["stroke-width"] = "5.5"
defining 'stroke-opacity' because it changes the color of the whole image instead of the white background & 'stroke-width' to fill the whole image
Is it possible to fill only the white area instead of using stroke-opacity and stroke-width?
fill_color and back_color is not changing the color of the qr code. Below is the code I'm using to generate the qr code.