# PredefinedColorSpace

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

*** ** * ** ***


```
class PredefinedColorSpace
```

<br />

*** ** * ** ***

Defines standard color spaces for surfaces.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/PredefinedColorSpace#DisplayP3() = 2` The Display-P3 color space. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/PredefinedColorSpace#DisplayP3Linear() = 327684` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/PredefinedColorSpace#Rec2020Linear() = 327685` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/PredefinedColorSpace#SRGB() = 1` |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/PredefinedColorSpace#SRGBLinear() = 327683` |

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

## Constants

### DisplayP3

```
const val DisplayP3 = 2: Int
```

The Display-P3 color space.

### DisplayP3Linear

```
const val DisplayP3Linear = 327684: Int
```

### Rec2020Linear

```
const val Rec2020Linear = 327685: Int
```

### SRGB

```
const val SRGB = 1: Int
```

### SRGBLinear

```
const val SRGBLinear = 327683: Int
```

## 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
```