package de.uulm.mi.gdg;

import processing.core.PApplet;

/**
 * The Equalizer class is the main controller for the Animation.
 *
 * @author Tobias Lahmann
 */
public class Equalizer extends PApplet {
    /**
     * The settings() method runs before the sketch has been set up, so other Processing functions cannot be used at
     * this point.
     */
    public void settings() {
        setSize(1240, 720);
    }

    /**
     * The setup method is called before displaying any objects. The Method calls commands in the Processing API.
     */
    public void setup() {

    }

    /**
     * Draw method is responsible for displaying all objects.
     */
    public void draw() {

    }

    /**
     * Main method to instantiate the PApplet.
     *
     * @param args Arguments passed to the PApplet.
     */
    public static void main(String[] args) {
        PApplet.main(new String[]{Equalizer.class.getName()});
    }
}

@@ -29,30 +29,129 @@
 ort 
-processing.core.PApple
+de.uulm.mi.gdg.objects.Circle;%0Aimport processing.core.PApplet;%0Aimport processing.core.PVector;%0A%0Aimport java.util.ArrayLis
 t;%0A%0A
@@ -293,16 +293,114 @@
 pplet %7B%0A
+    // A list of circles to hold the elements to display.%0A    private ArrayList%3CCircle%3E circles;%0A%0A
     /**%0A
@@ -767,119 +767,807 @@
 ) %7B%0A
-%0A    %7D%0A%0A    /**%0A     * Draw method is responsible for displaying all objects.%0A     */%0A    public void draw() %7B%0A
+        circles = new ArrayList%3C%3E();%0A%0A        // Creates random circles to see what an animation could look like%0A        for (int i = 0; i %3C 10; i++) %7B%0A            float xPosition = random(this.width);%0A            float yPosition = random(this.height);%0A            PVector position = new PVector(xPosition, yPosition);%0A            float radius = random(10, 100);%0A            int color = color(0, 128, 128);%0A            Circle c = new Circle(position, radius, color);%0A            circles.add(c);%0A        %7D%0A    %7D%0A%0A    /**%0A     * Draw method is responsible for displaying all objects.%0A     */%0A    public void draw() %7B%0A        // Display every circle available%0A        for (Circle c : circles) %7B%0A            stroke(c.color);%0A            ellipse(c.position.x, c.position.y, c.radius, c.radius);%0A        %7D
 %0A   

Add 10 circles to the animation and display them