MCPcopy 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
452String Color::toHex() const {
453 auto rgba = toRgba();
454 return hexEncode((char*)rgba.ptr(), rgba[3] == 255 ? 3 : 4);
455}
456
457void Color::convertToLinear() {
458 setRedF(toLinear(redF()));

Callers 2

fadeToSkyColorMethod · 0.80
imageOperationToStringFunction · 0.80

Calls 2

hexEncodeFunction · 0.85
ptrMethod · 0.45

Tested by

no test coverage detected