Last active
March 21, 2019 15:36
-
-
Save riggaroo/95d436436ecbb138adaeb887241869e2 to your computer and use it in GitHub Desktop.
Custom Canvas Drawing with KTX
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
canvas.withTranslation(200f, 300f) { | |
drawCircle(150f, 150f, RADIUS, circlePaint) | |
withRotation(45f) { | |
drawRect(rect, rectPaint) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment