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

Gradients? #29

Closed
Fatbat opened this issue Mar 17, 2014 · 3 comments
Closed

Gradients? #29

Fatbat opened this issue Mar 17, 2014 · 3 comments
Labels

Comments

@Fatbat
Copy link

Fatbat commented Mar 17, 2014

Would it be possible to include a sweep gradient on the remaining time when counting down? I'm trying to illustrate urgency so I'd like the sweep to go from green to yellow to orange to red the closer it gets to the time running out.

Thanks.

@wimbarelds
Copy link
Owner

You can do this using .addListener and regularly changing the options to change the colors as needed.

@Fatbat
Copy link
Author

Fatbat commented Mar 17, 2014

I found the other example here #23 and that seems to be working good. I take it a sweep gradient isn't possible somehow?

@wimbarelds
Copy link
Owner

It's perfectly possible to do a sweeping gradient, just means you'll have to write slightly more complex code-- but that's really not all too difficult. Mind you, it does depend on at what times you'd want it to be green / yellow / red.

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

No branches or pull requests

2 participants