Class Color


  • public class Color
    extends java.lang.Object
    Simple container for color components, using rgba, all in 0-255 range
    Author:
    Christopher
    • Constructor Summary

      Constructors 
      Constructor Description
      Color​(int r, int g, int b)
      All color channel should be in 0-255 range, alpha will default to 255 if not given
      Color​(int r, int g, int b, int a)
      All color channel should be in 0-255 range
    • Constructor Detail

      • Color

        public Color​(int r,
                     int g,
                     int b)
        All color channel should be in 0-255 range, alpha will default to 255 if not given
        Parameters:
        r - red
        g - green
        b - blue
      • Color

        public Color​(int r,
                     int g,
                     int b,
                     int a)
        All color channel should be in 0-255 range
        Parameters:
        r - red
        g - green
        b - blue
        a - alpha
    • Method Detail

      • getRed

        public int getRed()
      • getGreen

        public int getGreen()
      • getBlue

        public int getBlue()
      • getAlpha

        public int getAlpha()
      • getRGB

        public int getRGB()