Removing Graphics Dynamically
in
Programming Questions
•
2 years ago
First, I'd like to wish anyone and all who may be reading this a Happy New Year, may it be a good one.
My question is more of a brainstorm really - the best way to accomplish a task as opposed to a pure programming question. Let me describe for you what I am working with:
Using some basic trig I have a series of rotating circles that change their size in accordance to external music signals. This is for use with live music and has the capability to control different variables via hardware.The best way for me to describe this is with a picture (sorry for the size):
As the circles continue their rotation, however, the previously drawn circles remain in the background- creating, eventually, a somewhat messy background image.
So, the crux is this: how to delete some of the previously drawn circles in a way that removes them from behind the newer circles as to preserve the 3Dish look? We have all played the snake game, it's like that - deleting the tail to give the idea of movement, only this time, I want to remove slices from behind. It's a little difficult to explain, but I'm sure you'll get my point. I was thinking of using pushMatrix, and popMatrix. However, as I am new to Processing, I thought I'd ask about and see if anyone had any other ideas about how to do this.
Danke
My question is more of a brainstorm really - the best way to accomplish a task as opposed to a pure programming question. Let me describe for you what I am working with:
Using some basic trig I have a series of rotating circles that change their size in accordance to external music signals. This is for use with live music and has the capability to control different variables via hardware.The best way for me to describe this is with a picture (sorry for the size):
As the circles continue their rotation, however, the previously drawn circles remain in the background- creating, eventually, a somewhat messy background image.
So, the crux is this: how to delete some of the previously drawn circles in a way that removes them from behind the newer circles as to preserve the 3Dish look? We have all played the snake game, it's like that - deleting the tail to give the idea of movement, only this time, I want to remove slices from behind. It's a little difficult to explain, but I'm sure you'll get my point. I was thinking of using pushMatrix, and popMatrix. However, as I am new to Processing, I thought I'd ask about and see if anyone had any other ideas about how to do this.
Danke
1