Java – find the complement of color programmatically?

Is there any way to find the complement of the color of a given RGB value? Or can only find some colors? Will anyone do this in Java?

Solution

It's a question of unexpected depth, depending on what you need If you're just trying to create something that looks like an input color supplement, using simple math is trivial If you want it to be as close as possible (so you'll actually get a neutral gray when mixing colors), you need to deal with color space, gamma and the remaining calibration color confusion

By the way, I'm not familiar with the term "complementary color" – what does that mean?

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>