Canvas realize scraping and scraping music JS realize scraping music __js

Source: Internet
Author: User
Canvas realize scraping and scraping music JS realize scraping and scraping music

* * Ideas:
(1) First need a box positioning to determine where the scraping area you want to put
(2) There is a box in the positioning box, which is to put the prize
(3) Use a canvas (canvas) to cover the top of the box
(4) When the hand touch move, you can erase some of the canvas, exposing the trophy area
(5) When erasing enough (1/3), you can choose to let the canvas disappear automatically * *

because there is not much content, directly on the code, there are annotations, to change things on two pictures, change the path on the line and the imported Jquery.js script package

<! DOCTYPE html style= "width:100%; height:100% "> 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.