Class Color4f


  • public class Color4f
    extends java.lang.Object
    • Field Detail

      • _r

        public final float _r
      • _g

        public final float _g
      • _b

        public final float _b
      • _a

        public final float _a
    • Constructor Detail

      • Color4f

        public Color4f​(float r,
                       float g,
                       float b)
      • Color4f

        public Color4f​(float[] rgba)
      • Color4f

        public Color4f​(int c)
      • Color4f

        public Color4f​(float r,
                       float g,
                       float b,
                       float a)
    • Method Detail

      • toColor

        public int toColor()
      • flatten

        public float[] flatten()
      • flattenArray

        public static float[] flattenArray​(Color4f[] colors)
      • makeLerp

        public Color4f makeLerp​(Color4f other,
                                float weight)
      • getR

        public float getR()
      • getG

        public float getG()
      • getB

        public float getB()
      • getA

        public float getA()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • withR

        public Color4f withR​(float _r)
        Returns:
        this.
      • withG

        public Color4f withG​(float _g)
        Returns:
        this.
      • withB

        public Color4f withB​(float _b)
        Returns:
        this.
      • withA

        public Color4f withA​(float _a)
        Returns:
        this.