Created
August 13, 2020 13:32
-
-
Save yuriyskulskiy/e6aed999d772a3ea6d38a33b41113588 to your computer and use it in GitHub Desktop.
GlowingEdgeEffect: modify draw()
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
public boolean draw(Canvas canvas) { | |
canvas.clipRect(mBounds.left, | |
mBounds.top, | |
mBounds.right, | |
mBounds.bottom + mBounds.bottom * BlUR_RADIUS_FACTOR); | |
... | |
// mPaint.setAlpha((int) (0xff * mGlowAlpha)); alpha is not going to be changed during animation | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment