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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software