Thread:Randomouscrap98/@comment-24568832-20140123000615/@comment-9531161-20140123021210

Errr, I forgot lol. I'm fairly certain it's along these lines though:
 * First, I store all the original colors in an array. This is important later.
 * Every second or so (or whenever you feel like it), use TMREAD_(Command) to get the hour, minute, and second. Just keep the hour (you can use the others if you like)
 * I created a series of offsets for each value of Red, Blue, and Green for each time of day. I use the hour as an index into these offsets. For instance, 7pm has an increased red color but a decreased blue, whereas green stays the same.
 * Next, I look at the original colors, alter them using the offsets for the time of day, and then set the new colors. This is why I kept the original colors in an array; if the offsets stacked, it would be terrible.

This whole process uses COLREAD and COLSET. COLREAD gives you the red, blue, and green values for a particular color. I only use this for the first part, where I store the original colors. COLSET unfortunately requires a HEX string which represents the red, blue, and green values. This isn't that bad; it's the same as HTML. So, in order to change the colors for a time of day, I take all the RGB values I saved earlier, apply the offsets for that time of day on each color, and then use COLSET to apply the new color.

OH: make sure you only do this when necessary. It takes a while to change all the colors, so you should probably only do it when the hour changes.