Function PixelFormat.getRGBA

Wraps SDL_GetRGBA which converts a pixel uint value to a comprehensible dsdl.Color struct, based on the pixel format defined by the dsdl.PixelFormat

Color getRGBA (
  uint pixel
) @trusted const;

Parameters

NameDescription
pixel the pixel uint value to convert

Returns

the dsdl.Color struct of the given pixel value