Class Color
java.lang.Object
org.graalvm.tools.lsp.server.types.JSONBase
org.graalvm.tools.lsp.server.types.Color
Represents a color in RGBA space.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Colorcreate(double red, double green, double blue, double alpha) Creates a new Color literal.booleandoublegetAlpha()The alpha component of this color in the range [0-1].doublegetBlue()The blue component of this color in the range [0-1].doublegetGreen()The green component of this color in the range [0-1].doublegetRed()The red component of this color in the range [0-1].inthashCode()
-
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
-
hashCode
public int hashCode() -
create
Creates a new Color literal.
-