bartosz546 Posted June 2, 2019 Share Posted June 2, 2019 Hi! I was thinking about making scratch lottery on html5 canvas. I was wondering how this scratch layer could be implemented. I want player, if he drag over his mouse or finger on touch devices to remove part of layer he is hovering over, touching. I would even more appriopriate ideas with usage of pixiJs Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 2, 2019 Share Posted June 2, 2019 renderTexture over background, use special blendMode (ERASE) to clear parts of an image. Here's one example, but its not as performant as i said: https://pixijs.io/examples/#/demos-advanced/scratchcard.js Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.