I need to pick two colors, then find X colors (or tones) between them, each one separated with the same \'distance\' of the other.
I still don\'t understand how colo
The simplest thing to do is to take the RGB values of the first and the second color and interpolate them together ie.
$b1 = $color1['blue'];
$b2 = $color2['blue'];
for($i=0; $i<$X; $i++){
$b = round($b1 + (1.0 * ($b2 - $b1) * $i / $X));
// Do the same for the red / green values
}
EDIT: You can also use the HSV value instead of the RGB value