Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to change qrcode color #82

Closed
huang-x-h opened this issue Mar 9, 2020 · 8 comments
Closed

how to change qrcode color #82

huang-x-h opened this issue Mar 9, 2020 · 8 comments

Comments

@huang-x-h
Copy link

Can we change the qrcode from black to green?

@kazuhikoarase
Copy link
Owner

Hi, What language of qrcode geenrator do you use?

@huang-x-h
Copy link
Author

use dataURL data:image/gif;base64,

@huang-x-h
Copy link
Author

@kazuhikoarase hi, any plan to support colorful qrcode ?

@kazuhikoarase
Copy link
Owner

@huang-x-h I have no plan. But you can generate it manually.

https://jsfiddle.net/mfxg1noj/

@huang-x-h
Copy link
Author

Great, thanks a lot ! 👍

@ygoe
Copy link

ygoe commented Aug 22, 2020

This is now built-in, see my PR #91.

@Uluer
Copy link

Uluer commented Sep 2, 2020

使用dataURL data:image/gif;base64,

https://github.com/kazuhikoarase/qrcode-generator/blob/master/js/qrcode.js
第2045行
// black out.writeByte(0x00); out.writeByte(0x00); out.writeByte(0x00);
修改值,这3个值对应rgb的3个值

@ygoe
Copy link

ygoe commented Sep 2, 2020

修改值,这3个值对应rgb的3个值

Yes, that's what I did.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants