Graphics::rgb565ToIndex

Description

ColorIndex Graphics::rgb565ToIndex( Color rgb )

Graphics::rgb565ToIndex converts a single rgb color into an indexed color, by closest match.

Parameters

  • Color rgb: color to convert

Returns

ColorIndex: closest matching indexed color

Example

N/A