curtjrees
05/16/2021, 3:05 PMGenericShape
?
For example, I’ve drawn a simple Triangle, but if I zoom slightly you can see how messy the lines arecurtjrees
05/16/2021, 3:06 PMval TriangleShape = GenericShape { size, _ ->
moveTo(size.width / 2, 0f)
lineTo(size.width, size.height)
lineTo(0f, size.height)
close()
}
Surface(
shape = TriangleShape,
color = Color.Black,
modifier = Modifier
.size(64.dp)
.align(Alignment.CenterHorizontally)
) {}
curtjrees
05/16/2021, 3:06 PMAndrey Kulikov
05/16/2021, 3:31 PM