|
RGBAlphaBlend | |
ColourValue = RGBAlphaBlend(RgbColourA, RgbColourB, BlendPercent) | |
Parameters: RgbColourA = The RGB colour value to blend RgbColourB = The RGB colour value to blend BlendPercent = The blending percentage between them |
|
Returns: ColourValue = The grey scale equivalent of the input colour value |
|
The RGBAlpgaBlend() function will take two input RGB colours, performs an Alpha Blending upon them to return a new colour. The Alpha Blending process is nothing more than cross fading from RGBColourA towards RGBColourB. The fading is controlled by the BlendPercent parameter. Blend Percentages (0 to 100) 00 = Blend result is completely the RGBColourA FACTS: * None Mini Tutorial: This example draws two overlapping boxes. It then uses RGBAlphaBlend to create the illusion that the overlapping section is transparent, by drawing a cross faded box section in the over lapping section.
|
Related Info: | RGB | RgbAlphaAdd | RgbAlphaAnd | RgbAlphaMult | RgbAlphaOr | RgbAlphaSub | RgbAlphaXOr | RndRGB : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |