Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drawing sine waves effeciently in android

I am making an app where I need to draw a sine wave between two given points. I have Google'd, and Google'd, and I haven't found anything that I have found suitable.

Is there an efficient way in android to use some pre defined points to draw a smooth wave like form?

like image 599
DingleNutZ Avatar asked Oct 16 '25 16:10

DingleNutZ


1 Answers

You can use the android.graphics.Path class to construct a set of quadratic or cubic Bézier spline curves between your set of control points.

like image 161
Jim Lewis Avatar answered Oct 18 '25 06:10

Jim Lewis



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!