|
GetSpriteImageRGB | |
VertexColour = GetSpriteImageRGB(SpriteIndex, VertexIndex) | |
Parameters: SpriteIndex = The Sprite you wish to query VertexIndex = The Vertex your wish to read |
|
Returns: VertexColour = The RGB colour value of this vertex |
|
The GetSpriteImageRGB() return the RGB colour value level at any of the sprites corner vertex. FACTS: * Sprites vertex range from vertex 0 to 3. They are ordered 0= top left, 1 top right, 2 bottom right, 3 bottom left. * The RGB colours values only take effect when sprite is set to "Gouraud RGB" drawmode. See 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 coords stepped in and have random RGB values applied, so the sprites will shown the various stages of texel zooming with a gouraud RGB applied to them also.
|
Related Info: | GetSpriteImageU | GetSpriteImageV | SpriteDrawMode | SpriteImageIntensity | SpriteImageRGB | SpriteImageUV : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |