Created
January 21, 2019 10:24
-
-
Save hi-manshu/5a0f457450a3d24f4146a03999386c07 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private fun drawCurve(canvas: Canvas, mPointa: PointF, mPointb: PointF): Path { | |
| val myPath = Path() | |
| myPath.moveTo((canvas.width / 2).toFloat(), ((((canvas.height) - canvas.width / 5) / 2)).toFloat()) | |
| myPath.quadTo(midPoint(mPointa.x, mPointb.x), midPoint(mPointa.y, mPointb.y) - 150, mPointb.x, mPointb.y) | |
| return myPath | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment