Learning Android

Learn Jetpack Compose Canvas Cubic and Quadratic Bezier And Its Usage

Thoroughly Understand Cubic and Quadratic Bezier and Its Usage in Jetpack Compose

Photo by Ryan Stone on Unsplash

I just shared about drawing arcs in Jetpack Compose Canvas Path Drawing. However, it is only useful for something that is having a perfect circular curve (like a circle or oval).

What if we want to have something that can have a slight curve or more, and is not fixed to a perfect circular curve, like plotting a graph

Or even drawing a well-connected curvy line given relatively scattered points as shown below

If you are wondering why can’t we just use lines to achieve this, look at the below, aesthetically, lines are not good for these.

--

--