Skip to content

Add RGBA support seperate from RGB support, this allows ignoring rgba…#30

Open
nathanbatson wants to merge 2 commits intoEdMSL:masterfrom
nathanbatson:master
Open

Add RGBA support seperate from RGB support, this allows ignoring rgba…#30
nathanbatson wants to merge 2 commits intoEdMSL:masterfrom
nathanbatson:master

Conversation

@nathanbatson
Copy link
Copy Markdown

Hi, this package is exactly what I need for some of the work I was doing. Our project needed to make the distinction between RGB and RGBA. We use RGBA to define transparent colors and only hex to define opaque colors.

I forked this to get across a hurtle initially, but realized this could be a good addition if that's something you'd like to pull in. I tried to copy the patterns already in the repo and only extended what I needed and re-used much of the RGB flow as possible.

… while still converting all other models to HEX
Comment thread index.js Outdated
Comment thread src/converts.js Outdated
Co-authored-by: q2-kkendall <ken.kendall@q2.com>
@EdMSL
Copy link
Copy Markdown
Owner

EdMSL commented Feb 20, 2026

Hi. Thanks for your contribution. I think I can merge it. But it is a good idea to add this functionality to also ignore hsla colors. I'll implement it later.

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

Successfully merging this pull request may close these issues.

4 participants