Created
July 23, 2019 09:59
-
-
Save Nublo/9c1ff5eb8062a954f81e62aee3d265d7 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
data class GoalInProgress(val progress: Float) | |
private val unchargedPaint = Paint().apply { | |
xfermode = PorterDuffXfermode(PorterDuff.Mode.MULTIPLY) | |
} | |
private fun mixChargedAndUncharged(canvas: Canvas) { | |
drawFullyCharged(canvas) | |
drawUnchargedPart(canvas) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment