private void generate_ellips() { expandingObject = new ExpandingObject[amount]; for (int i = 0; i < amount; i++) { expandingObject[i] = new ExpandingObject(r); expandingObject[i].Color = c; } }
private void init() { selected_obj = "ellipse"; amount = 5; expandingObject = new ExpandingObject[amount]; r = new Random(); for (int i = 0; i < amount; i++) { expandingObject[i] = new ExpandingObject(r); } c = new Color(); }