core-ktx / androidx.graphics / kotlin.Int / toColor

toColor

inline fun Int.toColor(): Color

Creates a new Color instance from a color int. The resulting color is in the sRGB color space.