https://kotlinlang.org logo
#compose
Title
# compose
r

raghunandan

07/17/2022, 6:06 AM
[Solved] How would you approach creating a scratch card like google pay?.create a box with 2 layers one is the content, the other overlay image and then you free hand draw on that using a transparent color. Is this a valid approach?.
In case anyone is interested https://github.com/V9vek/ScratchCardEffect. The idea is to draw the overlay image and then use the gesture touch and move as path and use clip path ( difference) to draw the content (reveal content) behind. I am not sure if there is a better way.
39 Views