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
ConstructorsConstructorDescriptionRGBA(double red, double green, double blue, double alpha) Creates an instance of aRGBArecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoublealpha()Returns the value of thealpharecord component.doubleblue()Returns the value of thebluerecord component.final booleanIndicates whether some other object is "equal to" this one.doublegreen()Returns the value of thegreenrecord component.final inthashCode()Returns a hash code value for this object.doublered()Returns the value of theredrecord component.final StringtoString()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 aRGBArecord 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
-