Javascript erase image with cursor

后端 未结 2 1598
小蘑菇
小蘑菇 2021-01-03 08:58

Is it possible with javascript?

I\'m trying to implement a scratchcard type thing, and I was wondering if the user could \'scratch it\' with his cursor and then java

2条回答
  •  日久生厌
    2021-01-03 09:25

    Use html5 canvas element.

    Checkout this fiddle for an example: http://jsfiddle.net/ArtBIT/WUXDb/1/

提交回复
热议问题