MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / convertToSRGB

Method convertToSRGB

source/core/StarColor.cpp:463–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461}
462
463void Color::convertToSRGB() {
464 setRedF(fromLinear(redF()));
465 setGreenF(fromLinear(greenF()));
466 setBlueF(fromLinear(blueF()));
467}
468
469Color Color::toLinear() {
470 Color c = *this;

Callers 2

toSRGBMethod · 0.80
processImageOperationFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected