DropletMediaAccentColor

sRGB color used to tint active controls and highlights for the player.

struct DropletMediaAccentColor

Components are expected in the 0.0...1.0 range.

Initializers

init(from:)

init(from decoder: any Decoder) throws

init(red:green:blue:alpha:)

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

Creates an sRGB accent color.

Properties

alpha

let alpha: Double

Alpha channel (0.0...1.0).

blue

let blue: Double

Blue channel (0.0...1.0).

green

let green: Double

Green channel (0.0...1.0).

red

let red: Double

Red channel (0.0...1.0).