Skip to content

GPUColor

interface GPUColor
An RGBA color represented by four components. See [GPUColor in the WebGPU specification](https://www.w3.org/TR/webgpu/#typedefdef-gpucolor).

Properties

a

abstract val a: Double
The alpha channel value. See [GPUColor.a in the WebGPU specification](https://www.w3.org/TR/webgpu/#dom-gpucolordict-a).

b

abstract val b: Double
The blue channel value. See [GPUColor.b in the WebGPU specification](https://www.w3.org/TR/webgpu/#dom-gpucolordict-b).

g

abstract val g: Double
The green channel value. See [GPUColor.g in the WebGPU specification](https://www.w3.org/TR/webgpu/#dom-gpucolordict-g).

r

abstract val r: Double
The red channel value. See [GPUColor.r in the WebGPU specification](https://www.w3.org/TR/webgpu/#dom-gpucolordict-r).