tags:

views:

25

answers:

1

I have a css file with mono gray schema and i need to reverse colors to any color. For example gray color schema to green color schema etc.Is there any tools or method ? What is relation between parallel colors and how to calc parallel color.

+1  A: 

Look into Hue Saturation Value color representations. Changing the hue will give you "parallel" colors (same shades of blue, green, etc), but if you're starting with a grayscale color scheme you'll need to specify an initial saturation (as any hue with a saturation of 0 is still gray).

Performing the calculations between HSV and RGB (as needed for the CSS file) is not extremely hard, but depending on the language you're using it may be a built-in function. If not, it's a pretty easy algorithm to find on the web.

Ian Henry