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

Method setHue

source/core/StarColor.cpp:401–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399#endif
400
401void Color::setHue(float h) {
402 auto hsva = toHsva();
403 *this = Color::hsva(clamp(h, 0.0f, 1.0f), hsva[1], hsva[2], alphaF());
404}
405
406void Color::setSaturation(float s) {
407 auto hsva = toHsva();

Callers 7

materialParticleColorMethod · 0.80
renderObjectPreviewsMethod · 0.80
beamDrawablesMethod · 0.80
mainFunction · 0.80
mainFunction · 0.80
contrastingMethod · 0.80
complementaryMethod · 0.80

Calls 1

clampFunction · 0.85

Tested by

no test coverage detected