Clip outlines
The same colored box clipped three different ways.
Box(
Modifier.size(80.dp).clip(RoundedCornerShape(20.dp))
.background(MaterialTheme.colorScheme.primary)
)
Box(
Modifier.size(80.dp).clip(CircleShape)
.background(MaterialTheme.colorScheme.secondary)
)
Box(
Modifier.size(80.dp).clip(CutCornerShape(20.dp))
.background(MaterialTheme.colorScheme.tertiary)
)