Surface.colorKey

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

Parameters

newPixelKey uint

pixel value of the color key that get transparency

Throws

dsdl2.SDLException if color key unable to set

Meta