Surface.colorKey

Wraps SDL_SetColorKey which sets the color key used for the dsdl2.Surface making pixels of the same color transparent

Parameters

newColorKey Color

dsdl2.Color specifying pixels that get transparency

Throws

dsdl2.SDLException if color key unable to set

Meta