   Brighten/Darken Color ?
  Hi guys,What''s the professional way to brighten or darken a color ?I just multiply the components (R,G,B) by a factor and then make sure they don''t go above 255.Is that the best way ? Should I keep my colors in the 0.0...1.0 range instead ?I want the most accurate and best results, this will not be done real-time.Also, say I have two colors and want them the same ''brightness'', how do I do that ? So for example, if I filled two squares the same size with those colors and put them on a black screen neither one would overpower the other and the squares would look the same size (try a white square and a blue square both the same size, the white one looks much bigger.)I can convert to a different color space if I have to because, like I said, I won''t be doing this in real time.Thanks. 
  Hmmm, well you should probably tell us which API you''re using (DirectX, OpenGL?)   ----------------------------------"War does not determine who is right, only who is left." -Bertrand Russell ;  "you should probably tell us which API you''re using"Nonsense. Colors are pretty API independent. You should google for HSB or HSV colorspaces. they will be _very_ useful for you. It is basically about transforming the RGB colorspace to HSB (Hue, Saturation, Brightness), so you can manipulate the color more intuitivly. (misspelling?)But multiplying as you do, should be OK, since it also preserves the Hue better than just adding a value.;  Exponentiating can be a good operation to use as well. i.e. r'' = r^alpha, g'' = g^alpha, etc. (assuming colors are in the [0,1] range).The problem with multiplying arises when things start to clamp to one. At that point all your colors will get way oversaturated, because the ratios between your channels changes dramatically.Exponentiation can wash out your colors if you go to high, but it''s all a tradeoff because your monitor can only display a maximum level of brightness (which incidentally is a good thing, cause you don''t go blind every time someone throws a flashbang at you in counterstrike).    "Math is hard" -Barbie ;  Thanks guys.I never thought of exponents. I''ll do some research and experiment. I just pulled out my old copy of Computer Graphics by Foley et all and it''s got a whole chapter on color.And yeah, what does the API matter ?