Class Pixy2Video.RGB

  • Enclosing class:
    Pixy2Video

    public static class Pixy2Video.RGB
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      RGB​(int r, int g, int b)
      Constructs RGB container
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte getB()  
      java.awt.Color getColor()  
      byte getG()  
      byte getR()  
      void setB​(int b)
      Sets B value between 0-255
      void setG​(int g)
      Sets G value between 0-255
      void setR​(int r)
      Sets R value between 0-255
      void setRGB​(int rgb)
      Sets RGB value
      void setRGB​(int r, int g, int b)
      Sets RGB values between 0-255
      void setRGB​(java.awt.Color color)
      Sets RGB value from Color
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RGB

        public RGB​(int r,
                   int g,
                   int b)
        Constructs RGB container
        Parameters:
        r - R value
        g - G value
        b - B value
    • Method Detail

      • getColor

        public java.awt.Color getColor()
        Returns:
        Color object containing RGB
      • getR

        public byte getR()
        Returns:
        R value
      • getG

        public byte getG()
        Returns:
        G value
      • getB

        public byte getB()
        Returns:
        B value
      • setR

        public void setR​(int r)
        Sets R value between 0-255
        Parameters:
        r - R value
      • setG

        public void setG​(int g)
        Sets G value between 0-255
        Parameters:
        g - G value
      • setB

        public void setB​(int b)
        Sets B value between 0-255
        Parameters:
        b - B value
      • setRGB

        public void setRGB​(java.awt.Color color)
        Sets RGB value from Color
        Parameters:
        color - Color
      • setRGB

        public void setRGB​(int rgb)
        Sets RGB value
        Parameters:
        rgb - RGB value
      • setRGB

        public void setRGB​(int r,
                           int g,
                           int b)
        Sets RGB values between 0-255
        Parameters:
        r - R value
        g - G value
        b - B value