Skip to content
Advertisement

How do I change the colour of my QR code?

I want to make a QR code with python. The output is a white background with a black qr code. How do I change both of them?

JavaScript

Advertisement

Answer

pyqrcode module has not been updated for over 5 years. Use qrcode module instead. Note that qrcode module requires Pillow module.

JavaScript

Note that I pass the photo and subject to showcode() instead of using global variables.

Suggest to merge the code in showcode() into generate().

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement