-
-
Notifications
You must be signed in to change notification settings - Fork 99
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 'compare' or 'difference' subcommand #21
Comments
I was in the process of writing this feature, but I'm not sure what else to add in for text. I also wanted to ask if there was a way to print styled text at a specific location. I can see |
Awesome, thank you for looking into this. As for more information, I think we should also display the CIEDE2000 color difference. Other interesting quantities could be ΔL(ightness) or ΔH(ue). For both the contrast ratio and the color difference, we could also provide a little context as to what these values represent (e.g.: "not noticeable" or "high" for the difference). For more information on contrast ratios, see: https://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef I guess there is no way (yet) to draw colorized text, no. |
Hi @JuanPotato Do you mind sharing what you've worked about this so far, so i can have a look at it and check if i can implement this?? (cos in your screenshots seem you've already have something working...) Thank you. P.S. I checked if you've got t in your public repos but couldn't find it. |
https://github.com/JuanPotato/pastel/tree/compare Did you look at this branch? |
@JuanPotato Thank you. No I have not. But now whenever have some free time in coming weeks I'll give it a go... What i am thinking is that: the logic that does "the sorting" (command: sort-by) already holds the logic of comparison of colors based on brightness, luminance, hue and chroma, so I'll take that logic/code and use with your code that you implemented for cli entry (command: compare) and other components. I didn't go enough into the source code of Thank you again :) |
Which computes contrast, color difference, etc.
in the interactive version, we could show a-colored text on a b-colored background. Also, show two color panels (like in
pastel color
) directly next to each other.The text was updated successfully, but these errors were encountered: