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

Method complementary

source/core/StarColor.cpp:487–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485}
486
487Color Color::complementary() {
488 Color c = *this;
489 c.setHue(c.hue() + 180);
490 return c;
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()));

Callers

nothing calls this directly

Calls 2

setHueMethod · 0.80
hueMethod · 0.80

Tested by

no test coverage detected