How to create a scratchcard

I believe you can do it using Taifun’s method, but it would take some preparation to create the “top” image. Something like:

  1. Add your top image to the canvas background
  2. Get the pixel colour of each pixel in the canvas, add this and its x,y coordinates to a list.
  3. Clear the canvas
  4. Add your “bottom” image to the canvas background
  5. You should now be able to “draw” the “top” image on the canvas using the data in the list. (This is the init procedure in Taifun’s method)
2 Likes