Fade a color to white (increasing brightness)

Posted by Jon B on Stack Overflow See other posts from Stack Overflow or by Jon B
Published on 2009-04-02T18:06:28Z Indexed on 2010/04/10 19:23 UTC
Read the original article Hit count: 299

Filed under:
|
|
|
|

I want to make a text box in .NET "glow" yellow, and then "fade" to white (basically, by incrementally increasing the brightness). I think Stackoverflow does this after you've posted an answer. I know that increasing brightness is not all that simple (it's not just uniformly increasing/decreasing RGB), but I'm not sure how to do this.

Perfect color accuracy is not important for this. I am using C#, although VB examples would be just fine, too.

Edit: This is for Winforms.

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET