MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / getPackedRGB

Method getPackedRGB

src/Base/Color.cpp:100–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100uint32_t Color::getPackedRGB() const
101{
102 // clang-format off
103 return (static_cast<uint32_t>(std::lround(r * 255.0F)) << 24 |
104 static_cast<uint32_t>(std::lround(g * 255.0F)) << 16 |
105 static_cast<uint32_t>(std::lround(b * 255.0F)) << 8);
106 // clang-format on
107}
108
109uint32_t Color::getPackedARGB() const
110{

Callers 5

getDefaultAppearanceMethod · 0.80
toStringMethod · 0.80
updateIconMethod · 0.80
defaultAppearanceMethod · 0.80
TESTFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected