Skip to content

Instantly share code, notes, and snippets.

@TayfunCesur
Created June 22, 2019 18:51
Show Gist options
  • Save TayfunCesur/d7c852cb1245785c787afd0b7ae0d13f to your computer and use it in GitHub Desktop.
Save TayfunCesur/d7c852cb1245785c787afd0b7ae0d13f to your computer and use it in GitHub Desktop.
fun setCorner(radius: Float) {
mCurveStartPoint.set(0, radius.toInt())
mCurveEndPoint.set(mWidth, radius.toInt())
//Apply our new points to our path like above
mPath.apply {
//...
invalidate()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment