|
LightImage | |
LightImage ImageNumber, Xpos, Ypos, Brightness, FallOffRate# | |
Parameters: ImageNumber = The Index of the image that you wish to light Xpos = The X origin from where the light source is placed Ypos = The Y origin from where the light source is placed Brightness = The Brightness (at the center) of the illumination FallOffRate# = The rate the brightness falls away from the |
|
Returns: NONE | |
LightImage will illuminate the pixels of an image. The way it works is that each pixel is illuminated according to it's position to the lights origin point, which is considered to be the light source. If you set the lights origin to the center of the image, it creates a nice a shaded half sphere style effect. FACTS: * LightImage is a computationally heavy operation, as such, it's not intended for real time use on large images. |
|
Example Source: Download This Example
|
Related Info: | BlurImage | FadeImage | RGBmaskImage | ScrollImage : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |