@Override
    public void onUpdate(World apples) {
       if (radius>=maxradius)
       {
           alive = false;
       }

       switch (apples.random.nextInt(5))
       {
           default:
           case 0:
               c = Color.red;
           break;
           case 1:
               c = Color.orange;
           break;
           case 2:
               c = Color.yellow;
           break;
           case 3:
               c = new Color(252,111,16);
           break;
           case 4:
               c = new Color(242,0,0);
           break;
       }
       c = new Color(c.getRed(),c.getGreen(),c.getBlue(),(radius/(maxradius>0?maxradius:1))*255);
       radius+=speed;
    }