Closed AmoabaKelvin closed 2 weeks ago
It has been implemented! You can set nodeQrCodeOptions.color to change background and foreground colours. For example:
nodeQrCodeOptions.color
new QrCodeWithLogo({ canvas: document.getElementById("canvas"), content: "https://github.com/zxpsuper", width: 380, logo: { src: "https://avatars1.githubusercontent.com/u/28730619?s=460&v=4" }, nodeQrCodeOptions: { color: { light: "#eee", dark: "#f00" } }, cornersOptions: {}, dotsOptions: {} })
The result is that:
@AmoabaKelvin It has been implemented! 😄
Super, thanks mate!
Also it looks kinda blurry and not soo sharp, is there any reason for that @zxpsuper
It has been implemented! You can set
nodeQrCodeOptions.color
to change background and foreground colours. For example:The result is that: