DingleNutZ
DingleNutZ

Reputation: 163

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?

Upvotes: 4

Views: 5671

Answers (1)

Jim Lewis
Jim Lewis

Reputation: 45105

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.

Upvotes: 5

Related Questions