Advertisement
Guest User

Untitled

a guest
Feb 19th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. Color Blue = new Color;
  2. Color Red = new Color;
  3. Color Green = new Color;
  4.  
  5. public void setColor(Color color){
  6. this.color = color;
  7.  
  8.  
  9. }
  10. public Color getColor(){
  11. return this.color;
  12.  
  13. }
  14.  
  15. public double getBrightness(){
  16. this.brightness = Math.sqrt((0.241*Math.pow(Red.getColor(),2) + (0.691*Math.pow(Green.getColor(),2) + (0.068 * Math.pow(Blue.getColor())))));
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement