simple-qrcode icon indicating copy to clipboard operation
simple-qrcode copied to clipboard

Added support for hex code colors

Open fredbradley opened this issue 2 years ago • 0 comments

Add support for hex code colors rather than RGB.

Usage:

(new Generator)->color('#fff')->backgroundColor('#000');

Usage for Eye color is slightly different due to complexity:

(new Generator)->eyeColorFromHex(0, '#fff', '#000');

Test suite: I had trouble validating the "getAlpha()" methods on the test suite, but I couldn't work out why as the code should be the same. But Hex codes don't have alpha so it wouldn't make a difference to end result, but if someone can solve the test suite (currently commented out)

fredbradley avatar Apr 02 '23 21:04 fredbradley