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 RGB -> indexed downconverter #8

Open
zyga opened this issue Jul 30, 2015 · 1 comment
Open

Add RGB -> indexed downconverter #8

zyga opened this issue Jul 30, 2015 · 1 comment
Assignees
Milestone

Comments

@zyga
Copy link
Owner

zyga commented Jul 30, 2015

When using RGB colors on a terminal that doesn't support this feature (e.g. screen) the output is pretty hard to read (can be close to useless depending on foreground and background color choices).

It would be much better if we had a way to lookup closest indexed color for any RGB color. This could be glued to terminal capabilities that are explored in other issues.

@zyga zyga self-assigned this Jul 30, 2015
@zyga zyga added this to the 0.10 milestone Aug 9, 2015
@zyga
Copy link
Owner Author

zyga commented Aug 9, 2015

This is largely implemented now. I need to re-visit a few more things but I like how it works already. I've tested that existing 24bit RGB based application can be correctly operated with an indexed color filter.

The only thing that I wish I did now is to add support for named palettes so that application can install a color palette and provide both RGB and indexed color values that are optimized for color perception and not computed at runtime. This would allow for the automatic down-conversion to only apply to parts of the application that are not optimized for indexed environments. I'll file a few more issues to explore the idea of color names and to add a mechanism where application can install additional named colors easily.

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

No branches or pull requests

1 participant