Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Color Blue = new Color;
- Color Red = new Color;
- Color Green = new Color;
- public void setColor(Color color){
- this.color = color;
- }
- public Color getColor(){
- return this.color;
- }
- public double getBrightness(){
- this.brightness = Math.sqrt((0.241*Math.pow(Red.getColor(),2) + (0.691*Math.pow(Green.getColor(),2) + (0.068 * Math.pow(Blue.getColor())))));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement