Alright, im relatively new to java, but i have a firm understanding of it. Ive been using the gpdraw class to do various things, like make a certain number of randomly colored randomly spawning squares pop up, and ive pretty much done all i could do with gpdraw. My next goal, is to get some sort of animation going. In gpdraw, i can draw a circle, then move it and draw it a pixel to the right. This will of course make a line.
I can also fill a circle, fill it with white and move on to the next, but this creates an annoying flicker which i really do not want. I've heard of a technique called double buffering which allows the change to happen off screen to prevent flicker, but i have a feeling i wont be able to do this using gpdraw as ive been doing.
Would anyone know how i can accomplish a smooth animation in gpdraw without any flicker? Or if not possible, could someone let me know how it would be done through another method? Thanks