What is the best way to darken a color until it becomes readable? I have a series of titles that have the appropriate color, but some of these colors are very light, and any text drawn in them is unreadable. I talked to HSB and it seems like I can't get an algorithm that dims the color without making it look silver.
I basically just did this, but it doesn't seem to be what I would call βgoodβ results:
Color c = FromHSB( orig.A, orig.GetHue(), orig.GetSaturation(), orig.GetBrightness() > .9 ? orig.GetBrightness() - MyClass.Random(.5, .10) : orig.GetBrightness());
I also want to change the saturation. Is there a standard way to do this?
source share