Class Color


  • public class Color
    extends java.lang.Object
    Representation of a color, used by color sensors and color detectors.
    • Constructor Summary

      Constructors 
      Constructor Description
      Color​(int red, int green, int blue)  
      Color​(int red, int green, int blue, int color)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getBlue()
      Returns the blue component in the range 0-255 in the default sRGB space.
      int getColor()  
      int getGreen()
      Returns the green component in the range 0-255 in the default sRGB space.
      int getRed()
      Returns the red component in the range 0-255 in the default sRGB space.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait