[android-components](../../index.md) / [mozilla.components.support.utils](../index.md) / [DrawableUtils](index.md) / [loadAndTintDrawable](./load-and-tint-drawable.md)

# loadAndTintDrawable

`fun loadAndTintDrawable(context: `[`Context`](https://developer.android.com/reference/android/content/Context.html)`, @DrawableRes resourceId: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, color: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`): `[`Drawable`](https://developer.android.com/reference/android/graphics/drawable/Drawable.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/support/utils/src/main/java/mozilla/components/support/utils/DrawableUtils.kt#L17)

Return a tinted drawable object associated with a particular resource ID.

