Skip to content

Instantly share code, notes, and snippets.

@hi-manshu
Created January 21, 2019 10:24
Show Gist options
  • Save hi-manshu/5a0f457450a3d24f4146a03999386c07 to your computer and use it in GitHub Desktop.
Save hi-manshu/5a0f457450a3d24f4146a03999386c07 to your computer and use it in GitHub Desktop.
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