Three brush types
Each box clips to a rounded shape and fills with a different gradient.
val colors = listOf(Color(0xFF6750A4), Color(0xFF7D5260), Color(0xFF386A20))
Box(
Modifier.size(80.dp).clip(RoundedCornerShape(16.dp))
.background(Brush.linearGradient(colors))
)
Box(
Modifier.size(80.dp).clip(RoundedCornerShape(16.dp))
.background(Brush.radialGradient(colors))
)
Box(
Modifier.size(80.dp).clip(RoundedCornerShape(16.dp))
.background(Brush.sweepGradient(colors))
)