i-weather.org ///////// // 25:07:40

// technology // download // credits //// next //

 

limitInf = ((Long) Interpolation.elementAt(i)).longValue();
limitSup = ((Long) Interpolation.elementAt(i+1)).longValue();

if (currentTime >= limitInf && currentTime < limitSup)
  {
               float pct = (float) ((double) (currentTime - limitInf)/(double) (limitSup - limitInf));
               Integer [] limitInfValue, limitSupValue;

               limitInfValue = (Integer []) Choice.elementAt(i);
               limitSupValue = (Integer []) Choice.elementAt(i+1);

               NextDeadLine = ct + 1000l;
               NextColor = new Integer[3];
               NextColor[0] = new Integer(limitInfValue[0].intValue() +
                              (int) (pct * (limitSupValue[0].intValue() -
                              limitInfValue[0].intValue())));
               NextColor[1] = new Integer(limitInfValue[1].intValue() +
                              (int) (pct * (limitSupValue[1].intValue() -
                              limitInfValue[1].intValue())));
               NextColor[2] = new Integer(limitInfValue[2].intValue() +
                              (int) (pct * (limitSupValue[2].intValue() -
                              limitInfValue[2].intValue())));

               i = Interpolation.size();
   }