|
|
| RGBGreyScale | |
| ColourValue = RGBGreyScale(RgbColour) | |
| Parameters: RgbColour = The RGB colour value to convert |
|
| Returns: ColourValue = The grey scale equivalent of the input colour value |
|
The RGBGreyScale() function returns a RGB colour value converted to a grey scale equivalent. This is generally useful when you need to compute how bright a colour is. FACTS: * A colour returned from RGBGreyScale will have all it's R,G,B channel levels et to the same value. So R channel level will equal B as would the G in turn will equal B. Mini Tutorial: This example draws a random patch of dots, then repeats this process but this time coverting the dot colours to grey scales.
|
| Related Info: | ARGB | RGB | RgbAlphaAdd | RgbAlphaAnd | RGBAlphaBlend | RgbAlphaMult | RgbAlphaOr | RgbAlphaSub | RgbAlphaXOr | RGBFade : |
|
|
|||||||||||||||||||||||||||||||||||||||
|
(c) Copyright 2002 - 2026 - Kevin Picone - PlayBASIC.com |