// Tests // Analysis document.bgColor = "#FFFFFF"; bgFade(255, 255, 255, 255, -1, -1, -1); bgFade(175, 0, 0, 0, 1, 0, 0); bgFade(175, 175, 0, 0, -1, 0, 1); bgFade(175, 0, 0, 175, 0, 0, -1); bgFade(200, 0, 0, 0, 1, .1, .5); bgFade(100, 200, 20, 100, -1, -0.1, -0.5); bgFade(100, 100, 10, 50, -1, -0.1, 2); bgFade(250, 0, 0, 250, .25, 0, 0);These are a series of test for the bgFade function. I intentionally made the functions fade smoothly from one colour to the next, although, because the initial colour values are included in the function parameters, this was not necessary. It was done primarily for cosmetic purposes.
I also did not write the value of the function call to the screen. However, because this function is
visual by nature, I didn't feel this was necessary. If there had been some problems, then I would have
started writing values to the screen to debug the function.