# Math Help - Colors

1. ## Colors

How to create Color shades.

For example if red color means I have to reduce the intensity gradually and i have to create minimum 5 shade colors of red.

Anyone help me How to do color shades, any algorithm is there?

2. Originally Posted by kumar
How to create Color shades.

For example if red color means I have to reduce the intensity gradually and i have to create minimum 5 shade colors of red.

Anyone help me How to do color shades, any algorithm is there?
Not very clear, please clarify what you want to ask.

You could start by saying how you are representing colour (probably 24 bit, 8 bits per channel for RGB, but if you do not say so we are only guessing).

$\alpha [255,0,0] + (1-\alpha) [255,255,255]\ : \ \alpha \in [0,1]$

rounded to the nearest integers in $[0,255]$

CB