# GPUColor

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

*** ** * ** ***


```
class GPUColor
```

<br />

*** ** * ** ***

Represents an RGBA color value.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUColor#GPUColor(kotlin.Double,kotlin.Double,kotlin.Double,kotlin.Double)(r: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html, g: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html, b: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html, a: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUColor#a()` The alpha component. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUColor#b()` The blue component. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUColor#g()` The green component. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUColor#r()` The red component. |

## Public constructors

### GPUColor

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

```
GPUColor(r: Double, g: Double, b: Double, a: Double)
```

## Public properties

### a

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

```
var a: Double
```

The alpha component.

### b

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

```
var b: Double
```

The blue component.

### g

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

```
var g: Double
```

The green component.

### r

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

```
var r: Double
```

The red component.