Drawing sine waves effeciently in android

2019-02-11 00:22发布

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. So my question is, is there an efficient way in android to use some pre defined points to draw a smooth wave like form? thank you for any help in advance

1条回答
手持菜刀,她持情操
2楼-- · 2019-02-11 01:06

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.

查看更多
登录 后发表回答