androidandroid-jetpack-composeandroid-jetpack-compose-canvas

How to draw this wavy circle using Android canvas?


Trying to draw this wavy circle using Android canvas. Have tried using a Bezier curve, but not getting any good results.

Example of desired result


Solution

  • I think the new Androidx graphics-shapes library is what you want.
    See the related Medium article: The Shape of Things to Come.

    Also, for Jetpack Compose, there is a GitHub repository here creating those shapes.

    As a side note, I was looking for the name of this shape and I think it is called: