Class Color


  • public class Color
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Color()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int getA​(int color)  
      static int getB​(int color)  
      static int getG​(int color)  
      static int getR​(int color)  
      static int makeARGB​(int a, int r, int g, int b)  
      static int makeLerp​(int c1, int c2, float weight)  
      static int makeRGB​(int r, int g, int b)  
      static int withA​(int color, int a)  
      static int withB​(int color, int b)  
      static int withG​(int color, int g)  
      static int withR​(int color, int r)  
      • Methods inherited from class java.lang.Object

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

      • Color

        public Color()
    • Method Detail

      • makeLerp

        public static int makeLerp​(int c1,
                                   int c2,
                                   float weight)
      • makeARGB

        public static int makeARGB​(int a,
                                   int r,
                                   int g,
                                   int b)
      • makeRGB

        public static int makeRGB​(int r,
                                  int g,
                                  int b)
      • getA

        public static int getA​(int color)
      • getR

        public static int getR​(int color)
      • getG

        public static int getG​(int color)
      • getB

        public static int getB​(int color)
      • withA

        public static int withA​(int color,
                                int a)
      • withR

        public static int withR​(int color,
                                int r)
      • withG

        public static int withG​(int color,
                                int g)
      • withB

        public static int withB​(int color,
                                int b)