ColorUtils

object ColorUtils

Color utility class.

Functions

colorIntToRgbaExpression
Link copied to clipboard
fun colorIntToRgbaExpression(@ColorInt() color: Int): Expression
Converts Android color int to "rbga(r, g, b, a)" Expression equivalent.
colorToGlRgbaArray
Link copied to clipboard
fun colorToGlRgbaArray(@ColorInt() color: Int): FloatArray
Converts Android color int to GL rgba float array.
colorToRgbaArray
Link copied to clipboard
fun colorToRgbaArray(@ColorInt() color: Int): FloatArray
Converts Android color int to rgba float array.
colorToRgbaString
Link copied to clipboard
fun colorToRgbaString(@ColorInt() color: Int): String
Converts Android color int to "rbga(r, g, b, a)" String equivalent.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
rgbaExpressionToColorInt
Link copied to clipboard
fun rgbaExpressionToColorInt(value: Expression): Int?
Convert an rgba Expression to a Color int.
rgbaExpressionToColorString
Link copied to clipboard
fun rgbaExpressionToColorString(value: Expression): String?
Convert an rgba Expression to a Color String.
rgbaToColor
Link copied to clipboard
fun rgbaToColor(value: String): Int?
Convert an rgba string to a Color int.
toString
Link copied to clipboard
open fun toString(): String