welp Posted October 16, 2015 Share Posted October 16, 2015 Hi everyone, I'm working on my first Pixi.js project and I have a question about handling groups of primitives, as well as clearing them out when I'm done with them. As you can see in the attachment, I'm drawing a background of a guitar fretboard, and then drawing markers on it to indicate notes. However, right now I'm doing it in an incredibly naive way, just looping through my data and drawing a new marker at the calculated position. I'd like to have all markers of a certain color in a "layer" of sorts, so I can selectively make a layer visible or invisible. Additionally, the way I'm doing things right now doesn't work well because if the user selects a new scale to display, the old markers stay in place and make the output unusable (I haven't implemented any way to clear things yet). Any tips on how to accomplish what I'm looking for? Thanks! Quote Link to comment Share on other sites More sharing options...
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.