Class RGBA


  • public class RGBA
    extends java.lang.Object
    A structure holding an RGBA color.
    • Constructor Summary

      Constructors 
      Constructor Description
      RGBA​(java.lang.Integer r, java.lang.Integer g, java.lang.Integer b, java.util.Optional<java.lang.Number> a)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.Number> getA()
      The alpha component, in the [0-1] range (default: 1).
      java.lang.Integer getB()
      The blue component, in the [0-255] range.
      java.lang.Integer getG()
      The green component, in the [0-255] range.
      java.lang.Integer getR()
      The red component, in the [0-255] range.
      • Methods inherited from class java.lang.Object

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

      • RGBA

        public RGBA​(java.lang.Integer r,
                    java.lang.Integer g,
                    java.lang.Integer b,
                    java.util.Optional<java.lang.Number> a)
    • Method Detail

      • getR

        public java.lang.Integer getR()
        The red component, in the [0-255] range.
      • getG

        public java.lang.Integer getG()
        The green component, in the [0-255] range.
      • getB

        public java.lang.Integer getB()
        The blue component, in the [0-255] range.
      • getA

        public java.util.Optional<java.lang.Number> getA()
        The alpha component, in the [0-1] range (default: 1).