java.lang.Object
java.lang.Record
org.freedesktop.cairo.RGBA
- Record Components:
red
- red component of colorgreen
- green component of colorblue
- blue component of coloralpha
- alpha component of color
A color with red, green, blue and alpha components
- Since:
- 1.18
-
Constructor Summary
ConstructorDescriptionRGBA
(double red, double green, double blue, double alpha) Creates an instance of aRGBA
record class. -
Method Summary
Modifier and TypeMethodDescriptiondouble
alpha()
Returns the value of thealpha
record component.double
blue()
Returns the value of theblue
record component.final boolean
Indicates whether some other object is "equal to" this one.double
green()
Returns the value of thegreen
record component.final int
hashCode()
Returns a hash code value for this object.double
red()
Returns the value of thered
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
RGBA
public RGBA(double red, double green, double blue, double alpha) Creates an instance of aRGBA
record class.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
red
-
green
-
blue
-
alpha
-