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

Method convertToLinear

source/core/StarColor.cpp:457–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455}
456
457void Color::convertToLinear() {
458 setRedF(toLinear(redF()));
459 setGreenF(toLinear(greenF()));
460 setBlueF(toLinear(blueF()));
461}
462
463void Color::convertToSRGB() {
464 setRedF(fromLinear(redF()));

Callers 2

toLinearMethod · 0.80
processImageOperationFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected