SDL_SetSurfaceColorMod

Set an additional color value multiplied into blit operations.

When this surface is blitted, during the blit operation each source color channel is modulated by the appropriate color value according to the following formula:

srcC = srcC* (color / 255)

extern (C) nothrow @nogc extern
bool
SDL_SetSurfaceColorMod

Parameters

surface SDL_Surface*

the SDL_Surface structure to update.

r Uint8

the red color value multiplied into blit operations.

g Uint8

the green color value multiplied into blit operations.

b Uint8

the blue color value multiplied into blit operations.

Return Value

Type: bool

true on success or false on failure; call SDL_GetError() for more information.

See Also

Meta