set
Sets this color to the specified components.
Return
this color with its components set to the specified values
Parameters
red
the new red component
green
the new green component
blue
the new blue component
alpha
the new alpha component
Sets this color to the components stored in a color int. Color ints are stored as packed ints as follows: (alpha << 24) | (red << 16) | (green << 8) | (blue). Each component is an 8 bit number between 0 and 255 with 0 indicating the component's intensity.
Return
this color with its components set to those of the specified color int
Parameters
color Int
the color int specifying the new components