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

Method setValue

source/core/StarColor.cpp:411–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409}
410
411void Color::setValue(float v) {
412 auto hsva = toHsva();
413 *this = Color::hsva(hsva[0], hsva[1], clamp(v, 0.0f, 1.0f), alphaF());
414}
415
416void Color::hueShift(float h) {
417 setHue(pfmod(hue() + h, 1.0f));

Callers 3

renderWireMethod · 0.45
processImageOperationFunction · 0.45
uploadToSteamMethod · 0.45

Calls 1

clampFunction · 0.85

Tested by

no test coverage detected