-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
刮刮卡 #62
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
巨人
https://github.com/ZENGzoe/vue-scratch-card/
https://github.com/Masth0/ScratchCard
https://juejin.cn/post/6844903952157245447#heading-15
canvas 画刮刮卡的原理
思路功能
有的时候,实现是很简单的,而如何深入思考才是最重要的。比如说检查图层刮开的百分比的时候,是不是可以优化下计算速度。可以将图层以刮开的半径分割网格,从而降低检查次数。另外计算的时候要刨除掉四周,有可能刮了一圈但是没有刮中间的字,此时给他全都展示出来是不合适的。比如可以采用加权处理的方式。
The text was updated successfully, but these errors were encountered: