Hello. I would like to know if there is a way to use a command or a function instead of using e.g. ellipse or rect very very often to create an animation? Here is an example:
rect(x,y -= g,g,g);
rect(x,y -= g,g,g);
rect(x,y -= g,g,g);
rect(x,y -= g,g,g);
rect(x,y -= g,g,g);
rect(x,y -= g,g,g);
rect(x,y -= g,g,g);
rect(x,y -= g,g,g);
rect(x,y -= g,g,g);
rect(x,y -= g,g,g);
rect(x,y -= g,g,g);
rect(x,y -= g,g,g);
rect(x,y -= g,g,g);
rect(x,y -= g,g,g);
rect(x,y -= g,g,g);
rect(x,y -= g,g,g);
rect(x,y -= g,g,g);
rect(x,y -= g,g,g);
rect(x,y -= g,g,g);
rect(x,y -= g,g,g);
rect(x,y -= g,g,g);
rect(x,y -= g,g,g);
rect(x,y -= g,g,g);
rect(x,y -= g,g,g);
Thank you for your help.