Class RGBA

java.lang.Object
io.webfolder.cdp.type.dom.RGBA

public class RGBA extends Object
A structure holding an RGBA color.
  • Constructor Details

    • RGBA

      public RGBA()
  • Method Details

    • getR

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

      public void setR(Integer r)
      The red component, in the [0-255] range.
    • getG

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

      public void setG(Integer g)
      The green component, in the [0-255] range.
    • getB

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

      public void setB(Integer b)
      The blue component, in the [0-255] range.
    • getA

      public Double getA()
      The alpha component, in the [0-1] range (default: 1).
    • setA

      public void setA(Double a)
      The alpha component, in the [0-1] range (default: 1).
    • toString

      public String toString()
      Overrides:
      toString in class Object