plus
Composites two translucent colors together. More specifically, adds two colors using the source over blending mode. The colors must not be pre-multiplied and the result is a non pre-multiplied color.
If the two colors have different color spaces, the color in the right-hand part of the expression is converted to the color space of the color in left-hand part of the expression.
The following example creates a purple color by blending opaque blue with semi-translucent red:
val purple = Color.valueOf(0f, 0f, 1f) + Color.valueOf(1f, 0f, 0f, 0.5f)
Throws
if the color models of the colors do not match
Returns the union of two paths as a new Path.
Offsets this point by the specified point and returns the result as a new point.
Offsets this point by the specified amount on both X and Y axis and returns the result as a new point.
Performs the union of this rectangle and the specified rectangle and returns the result as a new rectangle.
Returns a new rectangle representing this rectangle offset by the specified amount on both X and Y axis.
Returns a new rectangle representing this rectangle offset by the specified point.
Return the union of this region and the specified Rect as a new region.
Return the union of this region and the specified region as a new region.