val Int.alpha: Int
Return the alpha component of a color int. This is equivalent to calling: |
|
val Int.blue: Int
Return the blue component of a color int. This is equivalent to calling: |
|
operator fun Int.component1(): Int
Return the alpha component of a color int. This is equivalent to calling: |
|
operator fun Int.component2(): Int
Return the red component of a color int. This is equivalent to calling: |
|
operator fun Int.component3(): Int
Return the green component of a color int. This is equivalent to calling: |
|
operator fun Int.component4(): Int
Return the blue component of a color int. This is equivalent to calling: |
|
val Int.green: Int
Return the green component of a color int. This is equivalent to calling: |
|
val Int.luminance: Float
Returns the relative luminance of a color int, assuming sRGB encoding. Based on the formula for relative luminance defined in WCAG 2.0, W3C Recommendation 11 December 2008. |
|
val Int.red: Int
Return the red component of a color int. This is equivalent to calling: |
|
fun Int.toColor(): Color
Creates a new Color instance from a color int. The resulting color is in the sRGB color space. |
|
fun Int.toColorLong(): Long
Converts the specified ARGB color int to an RGBA color long in the sRGB color space. |