Hi,
I thought maybe somebody here is well-versed in the art of creating gfx and so on and might help with this.
So I was hacking along and tried to determine some functions purpose based on its output. The function is obviously a split "fade from black to white" routine. Split in the sense that it determines the gradient used for the part "black to original color" in a different routine than the "original color to white" part. The black part goes straightforward and gives multiples of 12.5% of the original color, that is 0*12.5% = black, 1*12.5% = 1st gradient, ..., 8*12.5% = original color.
After that it changes and I don't quite get what it is actually doing besides making a quite obvious move to white color.
Now, this is gameboy, so for each channel of a color, rgb, there are values from 00 to 31 decimal instead of 32bit colors' values of 000 to 255 decimal.
I've made some diagrams showing what the function does for every iteration until white with the original color given to it, which do look ominously like some purposeful functions, as well as some example colors of the transformation to white in each iteration.
So basically, I'm hoping somebody can tell me what these do on a color level rather than on a functional level. Like I determined for the black gradients in percent of original color (which works totally different from this part, so I could not correlate).
So here goes: (I don't want to use thumbnails, because I think it might be clearer to have them lined up in a row)
1st iteration: channel OR 05 (decimal).
2nd iteration: channel OR 10 (decimal).
3rd iteration: channel OR 15 (decimal).
4th iteration: channel OR 20 (decimal).
5th iteration: channel OR 21 (decimal).
6th iteration: channel OR 30 (decimal).
7th iteration: channel OR 31 (decimal) -> this yields white.
So, umm basically, this makes the color go white in the end, however, I don't see how these things are in any way significant and have to be in that order to get a smooth fade out to white...
Some examples:
Thanks for any clue on this,
Tauwasser