Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenStarbound/OpenStarbound
/ toHex
Method
toHex
source/core/StarColor.cpp:452–455 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
450
}
451
452
String Color::toHex() const {
453
auto rgba = toRgba();
454
return hexEncode((char*)rgba.ptr(), rgba[3] == 255 ? 3 : 4);
455
}
456
457
void Color::convertToLinear() {
458
setRedF(toLinear(redF()));
Callers
2
fadeToSkyColor
Method · 0.80
imageOperationToString
Function · 0.80
Calls
2
hexEncode
Function · 0.85
ptr
Method · 0.45
Tested by
no test coverage detected