Is there an easy way to flip a canvas in Android? I cant seem to find anything that allows me to flip it vertically so that zero on the y-axis is the bottom of the phone screen
If you are drawing a bitmap, you can also use the Shader.TileMode of MIRROR, e.g.
Shader.TileMode
MIRROR
val shader = BitmapShader(bitmap, Shader.TileMode.MIRROR, Shader.TileMode.MIRROR) paint.shader = shader canvas.drawRoundRect(roundRect, 20F, 20F, mPaint) paint.shader = null