Created
June 22, 2019 18:51
-
-
Save TayfunCesur/d7c852cb1245785c787afd0b7ae0d13f to your computer and use it in GitHub Desktop.
This file contains 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
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