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

Method mix

source/core/StarColor.cpp:493–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491}
492
493Color Color::mix(Color const& c, float amount) const {
494 return Color::rgbaf(lerp(clamp(amount, 0.0f, 1.0f), toRgbaF(), c.toRgbaF()));
495}
496
497Color Color::multiply(float amount) const {
498 return Color::rgbaf(m_data * amount);

Callers 4

renderImplMethod · 0.45
getAudioDataMethod · 0.45
processImageOperationFunction · 0.45

Calls 3

lerpFunction · 0.85
clampFunction · 0.85
toRgbaFMethod · 0.80

Tested by

no test coverage detected