CreateImageColor
Description
Creates a 1x1 pixel image of a specified color. This can be used to texture any object or sprite with a solid color.
Definition
CreateImageColor( imageID, red, green, blue, alpha )
void agk::CreateImageColor( uint32_t imageID, uint32_t red, uint32_t green, uint32_t blue, uint32_t alpha )
integer CreateImageColor( red, green, blue, alpha )
uint32_t agk::CreateImageColor( uint32_t red, uint32_t green, uint32_t blue, uint32_t alpha )
Parameters
- imageID - The image ID to use for this image.
- red - The red component of the image (0 to 255)
- green - The green component of the image (0 to 255)
- blue - The blue component of the image (0 to 255)
- alpha - The alpha component of the image (0 to 255), 0 is completely transparent