Class Color

java.lang.Object
org.graalvm.tools.lsp.server.types.JSONBase
org.graalvm.tools.lsp.server.types.Color

public class Color extends JSONBase
Represents a color in RGBA space.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Color
    create(double red, double green, double blue, double alpha)
    Creates a new Color literal.
    boolean
     
    double
    The alpha component of this color in the range [0-1].
    double
    The blue component of this color in the range [0-1].
    double
    The green component of this color in the range [0-1].
    double
    The red component of this color in the range [0-1].
    int
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getRed

      public double getRed()
      The red component of this color in the range [0-1].
    • getGreen

      public double getGreen()
      The green component of this color in the range [0-1].
    • getBlue

      public double getBlue()
      The blue component of this color in the range [0-1].
    • getAlpha

      public double getAlpha()
      The alpha component of this color in the range [0-1].
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • create

      public static Color create(double red, double green, double blue, double alpha)
      Creates a new Color literal.