How to remove previous shape after draw() in Processing

后端 未结 2 892
花落未央
花落未央 2021-01-21 00:47

I cant figure this out. I have a sketch with little rotating rectangles on it. They rotate on every draw(). However the previous rectangle remains visible. I tried moving backgr

2条回答
  •  醉话见心
    2021-01-21 01:43

    What you are doing is printing every single circle or line...ect. You need to have a timer that removes them every so often. If you do it too fast you get a strobe like look. So have a timer that removes the first rect from the array list every so often.

提交回复
热议问题