colorResource

Composable Function

Android
@Composable
@ReadOnlyComposable
fun colorResource(@ColorRes id: Int): Color

Load a color resource.

Parameters

idthe resource identifier

Returns

the color associated with the resource