# BlendOperation

Artifact: [androidx.webgpu:webgpu](https://developer.android.com/jetpack/androidx/releases/webgpu) [View Source](https://cs.android.com/search?q=file:androidx/webgpu/BlendOperation.kt+class:androidx.webgpu.BlendOperation) Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

*** ** * ** ***


```
class BlendOperation
```

<br />

*** ** * ** ***

Defines the operation to perform when blending color values.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/BlendOperation#Add() = 1` The result is the sum of the source and destination. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/BlendOperation#Max() = 5` The result is the maximum of the source and destination. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/BlendOperation#Min() = 4` The result is the minimum of the source and destination. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/BlendOperation#ReverseSubtract() = 3` The result is the source subtracted from the destination. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/BlendOperation#Subtract() = 2` The result is the destination subtracted from the source. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/BlendOperation#Undefined() = 0` Indicates that no blend operation is specified. |

| ### Public companion functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/BlendOperation#toString(kotlin.Int)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |

## Constants

### Add

```
const val Add = 1: Int
```

The result is the sum of the source and destination.

### Max

```
const val Max = 5: Int
```

The result is the maximum of the source and destination.

### Min

```
const val Min = 4: Int
```

The result is the minimum of the source and destination.

### ReverseSubtract

```
const val ReverseSubtract = 3: Int
```

The result is the source subtracted from the destination.

### Subtract

```
const val Subtract = 2: Int
```

The result is the destination subtracted from the source.

### Undefined

```
const val Undefined = 0: Int
```

Indicates that no blend operation is specified.

## Public companion functions

### toString

Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

```
fun toString(value: Int): String
```