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

Omitting all white from generated gradient #190

Open
MrSaiclops opened this issue Mar 17, 2024 · 0 comments
Open

Omitting all white from generated gradient #190

MrSaiclops opened this issue Mar 17, 2024 · 0 comments

Comments

@MrSaiclops
Copy link

MrSaiclops commented Mar 17, 2024

This is a bit of a nit, but it looks like it could easily be achieved and help improve the aesthetics of the card.

My scenario:

I have a card with some Nanoleaf Shapes. I manually created a script to run effects on these devices that correlate with each scene, it makes the dynamic nature of the Hue scenes really nice.

The problem:

Screenshot 2024-03-17 at 10 53 22 AM

No matter what effect is selected on Nanoleaf Shapes they default to rgb(255,255,255). This means that the gradient that is generated will always have weird white splotches that don't correlate with the actual scene that's being played. I've tried using card_mod to edit the gradient but just can't quite get it to work.

Proposed Solution:

Could we automatically ignore values that are 100% white with a color_temp of null? My assumption is that no scene would actually use these values so it's safe to trim them from the gradient generation and would make the card much more appealing.

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

1 participant