class documentation

Converter for color pixels stored in RGB565 format

Class Method get Converts bytes -> RGB
Class Method set Converts RGB -> bytes
@classmethod
def get(cls, data: bytes, **kwargs) -> _T: (source)

Converts bytes -> RGB

Parameters
data:bytesThe raw bytes to convert
**kwargsUndocumented
Returns
_TThe RGB value stored in the two bytes of data
@classmethod
def set(cls, value: _T, **kwargs) -> bytes: (source)

Converts RGB -> bytes

Parameters
value:_TThe value to convert
**kwargsUndocumented
Returns
bytesThe bytes formed by concatenating the RGB components of value in 565 format