david43 Posted November 11, 2018 Share Posted November 11, 2018 hello, I try to use pointerdown/pointerup and ticker to drawCircle , but It just draw a point. It seems ticker not fast enough to draw it. Is it anyway to do it? https://codepen.io/anon/pen/wQzjxb Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted November 11, 2018 Share Posted November 11, 2018 https://pixijs.io/examples/#/demos/mouse-trail.js Look at this open-source project, for example: https://github.com/wonderunit/alchemancy Quote Link to comment Share on other sites More sharing options...
jonforum Posted November 11, 2018 Share Posted November 11, 2018 take a look in graphics features ,quadLine , bezierCurve, bezierLine, arc ... some example here can help you to achieve what you want. And use generate Texture to create a sprite. let quadLine = new Graphics(); quadLine.lineStyle(4, 0x000000, 1); quadLine.moveTo(32, 128); quadLine.quadraticCurveTo(128, 20, 224, 128); stage.addChild(quadLine); source: https://www.amazon.com/Learn-Pixi-js-Rex-van-Spuy/dp/1484210956 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.