Sign in to follow this  
macpherson

Interactive set of arcs

Recommended Posts

Hi! Is there any way to make set of arcs interactive? I have next not working code:

 

items.forEach(item => {
  const arc = new PIXI.Graphics();
  arc.lineStyle(...);
  arc.arc(...);
  arc.interactive = true;
  arc.on('mousedown', event => {
    ...
  })
  app.stage.addChild(arc);
})

How to handle that correctly?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.