|
GetSpriteImageIntensity | |
IntensityLevel = GetSpriteImageIntensity(SpriteIndex, VertexIndex) | |
Parameters: SpriteIndex = The Sprite you wish to query VertexIndex = The Vertex your wish to query |
|
Returns: IntensityLevel = The intensity level ranges betwen 0 and 255) |
|
The GetSpriteImageIntensity() function returns the current Intensity level at any corner of the sprite. FACTS: * Intensity values range from 0 to 255. (255=No Fade, 0 Totally faded out) * Sprites vertex range from vertex 0 to 3. They are ordered 0= top left, 1 top right, 2 bottom right, 3 bottom left. * Note: Sprites are drawn using a convex polygons, changing the intensity values can cause some render errors. So some care is needed to get good result. * Also See SpriteImageIntensity & SpriteDrawMode Mini Tutorial: This example creates an random image then applies this image to the screen full of sprites. Each sprites has it's UV coordinates stepped in and faded intensity values, so the sprites will show the various stages of texel zooming with a gouraud fade applied.
|
Related Info: | GetSpriteImageRGB | GetSpriteImageU | GetSpriteImageV | SpriteDrawMode | SpriteImage | SpriteImageIntensity | SpriteImageRGB | SpriteImageUV : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |