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

Hue Shift text contrast option #15

Open
Cheeseless opened this issue Jan 11, 2022 · 1 comment
Open

Hue Shift text contrast option #15

Cheeseless opened this issue Jan 11, 2022 · 1 comment

Comments

@Cheeseless
Copy link

Would it be possible to have the Hue Shift shader offset the color of different contiguous sections in such a way as to preserve relative visual contrast?

The example would be to reduce the whiteness of the symbols within the larger colored segments below, to preserve their visibility while within the brighter yellow and green parts of the hue rotation:
image

I'm not sure if it's feasible at all, so please disregard if it isn't.

@rbeesley
Copy link
Contributor

rbeesley commented Feb 9, 2023

Hue Shift only cycles the colors and doesn't have any smartness about it. It converts the color from RGB->HSV, applies an offset in the hue based on how long it has been running, and then converts HSV->RGB to display it. If you wanted to do more, you could implement an edge detection, set a low threshold, and then "do something" to increase the contrast... I would consider this to be a new shader you've written at that point. Look at how I applied Bloom to the CRT shader. I think you might be able to do the same thing as that was why I added it to the CRT. It's additive only as written, but you can probably come up with a way to highlight and shade to create the effect you want.

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

No branches or pull requests

2 participants