core-ktx / androidx.graphics.drawable / android.graphics.Color / toDrawable

toDrawable

inline fun Color.toDrawable(): ColorDrawable

Create a ColorDrawable from this Color (via Color.toArgb).