Questions tagged [android-jetpack-compose-path]
2 questions
2
votes
1 answer
Unable to find minus() of Path in Jetpack Compose
I am trying to use this minus extension function of Path in Jetpack Compose code.
But I am getting an unresolved reference error.
Code
@Composable
fun PathDiff() {
Canvas(
modifier = Modifier
.fillMaxSize(),
) {
…

Abhimanyu
- 11,351
- 7
- 51
- 121
1
vote
0 answers
How to create a Path will out fill in Jetpack Compose?
I have a Black box out of which I want to take away a specific path.
Code
@Composable
fun PathDiff() {
Canvas(
modifier = Modifier
.fillMaxSize(),
) {
val rect1 = Path().apply {
…

Abhimanyu
- 11,351
- 7
- 51
- 121