A sketch like
So perhaps the problem is elsewhere. You should do like me, starting from a simple sketch, building it up to see when it stops working as you want. It might be the renderer, the behavior of the video library or whatever.
BTW, moved from Programming Questions because there is, precisely, no code to look at.
- void setup()
- {
- size(1024, 720);
- }
- void draw()
- {
- background(0);
- ellipse(frameCount % width, height / 2, 50, 50);
- }
- void keyPressed()
- {
- exit();
- }
So perhaps the problem is elsewhere. You should do like me, starting from a simple sketch, building it up to see when it stops working as you want. It might be the renderer, the behavior of the video library or whatever.
BTW, moved from Programming Questions because there is, precisely, no code to look at.