Keo_74
01-29-2001, 05:27 PM
I have code that will Randomaly choose a long RGB color.
This color is being used for a Fore property RichText box.
The background for the RTB is Black.
I am trying to find a method to filter out the darker Colors so that only the Brighter ones will be choosen, so that is shows up on the Black Background.
My random RGB color creature can be modified so not a problem. Problem is figuring out how to do it.
I thought one possiblity would be to get the Luminence of the Color and then Reject anything with a low Lum.
Only problem is I can't find how to Calculate Lum.
I appreciate any help you can give me.
This color is being used for a Fore property RichText box.
The background for the RTB is Black.
I am trying to find a method to filter out the darker Colors so that only the Brighter ones will be choosen, so that is shows up on the Black Background.
My random RGB color creature can be modified so not a problem. Problem is figuring out how to do it.
I thought one possiblity would be to get the Luminence of the Color and then Reject anything with a low Lum.
Only problem is I can't find how to Calculate Lum.
I appreciate any help you can give me.