Gesture
Scratch Card
A gold-leaf scratch ticket. Rub the foil away with your finger and it tears, cracks and flakes like the real thing.
WebGPU + Skia + Reanimated + Gesture Handler
$12.99
Or get it with ProBy buying you agree to the Terms and Licence. All sales are final.
Recorded on iPhone. Scratching the gold foil away to reveal a prize underneath.
Features
- A solid gold ticket with a scalloped edge and engraved lettering
- Scratch with your finger and the foil tears in sharp, shiny edges
- Fine cracks, hanging flaps of leaf and falling gold dust
- Scratch enough and a wave clears the rest, then the glow blooms
- Tip the phone and the light moves across the metal
- Hide anything underneath: it's your own view
- Gold or silver foil, and your own words on the ticket
- No flying leaf under Reduce Motion, just a gentle fade
Installation
Usage
Whatever you pass as children is what the foil hides.
How it works
The foil is drawn by WebGPU shaders. Each stroke of your finger is stamped into a mask on the GPU, and the shaders read it to tear the edge, light it and crack it. The lettering is drawn once with Skia into a height map, so it stands up out of the metal. Pieces of leaf and dust that fly off are moved on the UI thread and drawn on their own canvas, which stops as soon as the last piece lands. Once enough is scratched and your finger lifts, a wave clears the rest.
More once you own it
Examples, the full list of props and every advanced option for Scratch Card are here for owners.