Structure

MTLClearColor

An RGBA value used for a color pixel.

Declaration

struct MTLClearColor

Topics

Initializers

init()

Returns a new color struct.

init(red: Double, green: Double, blue: Double, alpha: Double)

Returns a new color struct using the specified red, green, blue, and alpha values.

Instance Properties

var alpha: Double

The alpha color channel.

var blue: Double

The blue color channel.

var green: Double

The green color channel.

var red: Double

The red color channel.