plus

@RequiresApi(value = 26)
operator fun Color.plus(c: Color): Color(source)

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


inline operator fun Path.plus(p: Path): Path(source)

Returns the union of two paths as a new Path.


inline operator fun Point.plus(p: Point): Point(source)
inline operator fun PointF.plus(p: PointF): PointF(source)

Offsets this point by the specified point and returns the result as a new point.


inline operator fun Point.plus(xy: Int): Point(source)
inline operator fun PointF.plus(xy: Float): PointF(source)

Offsets this point by the specified amount on both X and Y axis and returns the result as a new point.


inline operator fun Rect.plus(r: Rect): Rect(source)
inline operator fun RectF.plus(r: RectF): RectF(source)

Performs the union of this rectangle and the specified rectangle and returns the result as a new rectangle.


inline operator fun Rect.plus(xy: Int): Rect(source)
inline operator fun RectF.plus(xy: Float): RectF(source)

Returns a new rectangle representing this rectangle offset by the specified amount on both X and Y axis.


inline operator fun Rect.plus(xy: Point): Rect(source)
inline operator fun RectF.plus(xy: PointF): RectF(source)

Returns a new rectangle representing this rectangle offset by the specified point.


inline operator fun Region.plus(r: Rect): Region(source)

Return the union of this region and the specified Rect as a new region.


inline operator fun Region.plus(r: Region): Region(source)

Return the union of this region and the specified region as a new region.