Color

@ObjCName(name = "FaceMatcherColor")
data class Color(val red: Float, val green: Float, val blue: Float, val alpha: Float = 1.0f)

RGBA color representation used by face matching and liveness sessions to control UI background illumination.

Constructors

Link copied to clipboard
constructor(red: Float, green: Float, blue: Float, alpha: Float = 1.0f)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

alpha channel component in the range [0.0f, 1.0f].

Link copied to clipboard
val blue: Float

blue channel component in the range [0.0f, 1.0f].

Link copied to clipboard

green channel component in the range [0.0f, 1.0f].

Link copied to clipboard
val red: Float

red channel component in the range [0.0f, 1.0f].

Functions

Link copied to clipboard

Relative luminance in [0.0f, 1.0f] for determining contrasting foreground text color.

Link copied to clipboard
fun toArgb(): Int

Converts this color to a packed 32-bit ARGB integer (0xAARRGGBB).