Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/comaps/comaps
/ ExtractRGB
Function
ExtractRGB
libs/kml/color_parser.cpp:35–38 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
33
}
34
35
std::tuple<int, int, int> ExtractRGB(uint32_t rgbaColor)
36
{
37
return {(rgbaColor >> 24) & 0xFF, (rgbaColor >> 16) & 0xFF, (rgbaColor >> 8) & 0xFF};
38
}
39
40
static int ColorDistance(uint32_t rgbaColor1, uint32_t rgbaColor2)
41
{
Callers
1
ColorDistance
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected