Talk:DAYNIGHT/@comment-9531161-20130524232738

Aww, we ALMOST did it the same! However, instead of using a function to define the color, I specifically set the color offsets for each hour of the day. That way, I could make it stable for the midday and late night hours (since it doesn't really get darker/lighter from 11 to 4). This unfortunately takes up a lot more space, so they both have their merits. I also tranformed the colors based on a curved shift rather than a linear shift, so that dark colors didn't get much darker but light colors became much darker. Both the curve and linear shift methods produce good results, but I chose the former due to the softer color differences.

This program is really cool, and an excellent example of how to accomplish a neat effect! I hope many people use this in their games!