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

# loadAndTintDrawable

`fun loadAndTintDrawable(context: <ERROR CLASS>, @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)`): <ERROR CLASS>` [(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.

