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

Add support for RGBA? #131

Closed
drager opened this issue Nov 26, 2020 · 1 comment · Fixed by #162
Closed

Add support for RGBA? #131

drager opened this issue Nov 26, 2020 · 1 comment · Fixed by #162

Comments

@drager
Copy link

drager commented Nov 26, 2020

Hello!

Would be cool if support could be added for rgba(). E.g: pastel "rgba(0, 0, 0, 0.1)". Could perhaps output something like this:

Name: black                    
Hex: #000000  
RGB: rgb(0, 0, 0)              
RGBA: rgba(0, 0, 0, 0.1)            
HSL: hsl(0, 0.0%, 0.0%)        
Opacity: 0.1

Backstory is that I find myself copying colors from design tools which can give my something rgba values in my clipboard. Would be nice to use directly with pastel without changing the output from the clipboard.

@sharkdp
Copy link
Owner

sharkdp commented Dec 1, 2020

Thank you for the feature request.

Sounds like a good idea, but I guess that would be quite some work.

It would be nice to display alpha != 1 colors with the checkerboard pattern slightly "shining through". This could be achieved using appropriate mixing/blending with the checkerboard colors.

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 a pull request may close this issue.

2 participants