static private Decode565 ( uint wColour ) : RGBColour | ||
wColour | uint | |
return | RGBColour |
static RGBColour Decode565(uint wColour)
{
RGBColour colour = new RGBColour()
{
r = ((wColour >> 11) & 31) * (1f / 31f),
g = ((wColour >> 5) & 63) * (1f / 63f),
b = ((wColour >> 0) & 31) * (1f / 31f),
a = 1f
};
return colour;
}