Composable Function

colorResource

Load a color resource.

colorResource

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

Load a color resource.

Parameters

id the resource identifier

Returns

the color associated with the resource