//A2-09-Move two visual elements across the screen using the random() function as a generator of movement. Give each element a unique nonlinear motion. //setup method void setup() { size(250,250); framerate(10); smooth(); } //draw method void draw() { background (50,250,250); drawMyRect(); drawMyEllipse(); } //method that draws and moves randomly my little funny box void drawMyRect() { fill(0,0,255); pushMatrix(); translate(width/2,height/2); rotate(radians(random(0,30))); translate(random(-15,15),random(-15,15)); rect(0,0,40,40); popMatrix(); } //method that draws and moves randomly my little funny circle void drawMyEllipse() { fill(240,50,0); pushMatrix(); rotate(radians(random(0,20))); translate(width/5,height/5); translate(90,0); ellipse(0,0,45,45); popMatrix(); }