I am trying to programmatically create some css borders and text shadows (for compression effect) using jQuery.
Given the RGB color value, I would like to calculate the color variations as 0to255 does .
For example, given the color # 023f74 , how do I come up with 4 shades easier than # 0363b7?
perhaps you could convert the color to RGB ro HSL or HSB / HSV, then apply the variation and then go back to RGB!
see here → http://www.easyrgb.com/index.php?X=MATH <- for formulas for converting from and to HSL / HSB / HSV and others ...
- \ , (fff ffffff) (000 - 000000).