How to Judge if a Color is Green?

后端 未结 0 1490
醉酒成梦
醉酒成梦 2021-02-12 05:47

What is the formula for deciding if an rgb code is green? Here is an attempt:

public boolean isGreen(Color color){
        return (color.getGreen() > 0.8*(colo         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题