https://kotlinlang.org logo
#compose
Title
# compose
a

Alexander Zhirkevich

10/01/2023, 9:11 PM
Hey guys. I faced a weird buggy behaviour of Compose
Path
operations. More in 🧵.
And this do the job:
But when i do the same but add a
donut
path using
addPath
to other path like this:
Copy code
val donutWithSomethingElse = Path().apply {
    addPath(donut)
}

drawPath(donutWithSomethingElse, Color.Black)
I am getting this:
Previously i used to do the same with
android.graphics.Path
and it worked like a charm. And when i started to migrate the code to Compose i faced this issue
Should i fill up an issue report or am i doing something wrong?
e

ephemient

10/01/2023, 10:29 PM
fill type is set by combine but can't be by addPath
if you flip the winding order of one of the circles it should work
thank you color 1