This code isn't very fun, or useful... but it could be useful to some people.
And since making this is a headache, i'm posting it here.
I wrote this to have gradients on my MathMagic screensaver. So here it is.
It can be quite useful in some GUI windows.
In this code there are 2 functions:
RandomColor --> Generates a random color (you can limit min and max).
ColorGradient --> Generates an array containing the step colors from color A to color B
There's a small GUI example in