how to find different shades betwen two colors
I have to build a small dll in which I have to display different shades between two colors. It's basically a color table in which I have to choose two colors, lets say I have choosen Red Color in one text box and Green Color in another text box and just by providing a range starting from 0 to 10 with an increment of 1. It should show all the shades between Red and Green starting from the dark color, then light color and subsequently ......... changes color to green.
As I have come to know through some studying that there are two types of colors - RGB (Red/Green/Blue) and HSL (Hue/Saturation/Leumination)
So I just want to know how to show different colors. Are there any calculation to perform or something else?
Please help me.
|