complementary

Undocumented in source. Be warned that the author may not have intended to support it.
Colour
complementary
(
Colour
)
(
const Colour colour
)
if ()

Examples

import magicalrainbows.formats : RGB888;
assert(RGB888(0, 0, 0).complementary == RGB888(255, 255, 255));
assert(RGB888(255, 255, 255).complementary == RGB888(0, 0, 0));
assert(RGB888(0, 255, 255).complementary == RGB888(255, 0, 0));
assert(RGB888(0, 128, 0).complementary == RGB888(255, 127, 255));

Meta