-
Notifications
You must be signed in to change notification settings - Fork 4
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 option to map 24 hours to full color range #5
Comments
What do you mean exactly? The time is in 24h format. @der-On |
I would like to have #00000 to map to 00:00:00 and #ffffff to 23:59:59 and #cccccc to 12:00:00 or something like that. So basically we would get the full color spectrum throughout the day. |
@der-On 12:00:00 -> #850000 Hour is from 0 to 23, so convert that value to 0-255. Then convert that values to hex, and get the colors. With this we could have plenty of colors. |
@jajasuperman That sounds awesome! It should also bring smooth transitions even when minutes and hours change. |
There's another interesting way of transitioning between colours: we can do a random walk throughout the whole colour spectrum. |
@cao- Could you put an example? |
We can view our RGB colour space as a three dimensional cubic set of points. In fact, every point is a triplet of the form (r,g,b), where r,g and b are any number between 0 and 255. Example. This method produces an always uniform but non-predictable transition between colours. |
@jajasuperman Thank you for trying to implement our ideas! |
It would be nice to have the full color range map to 24h of a day. This way color transitions would be more interesting and vivid.
The text was updated successfully, but these errors were encountered: