//[tvlib](../../index.md)/[org.mjdev.tvlib.ui.toolkit](index.md)/[foreground](foreground.md) # foreground [androidJvm]\ @[Stable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Stable.html) fun [Modifier](https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.html).[foreground](foreground.md)(color: [Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color.html), shape: [Shape](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape.html) = RectangleShape): [Modifier](https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.html) @[Stable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Stable.html) fun [Modifier](https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.html).[foreground](foreground.md)(brush: [Brush](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush.html), shape: [Shape](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape.html) = RectangleShape, @[FloatRange](https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange.html)(from = 0.0, to = 1.0)alpha: [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html) = 1.0f): [Modifier](https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.html)