document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. Cor *IC(Cor *Cinicio, Cor *Cfinal, float p)
  2. {
  3.      int Dr = 0,
  4.          Dg = 0,
  5.          Db = 0,
  6.          Da = 0;
  7.  
  8.  
  9.      Dr = Cfinal->GetR()*p + (1-p)*Cinicio->GetR() ;
  10.      Dg =  Cfinal->GetG()*p+ (1-p)*Cinicio->GetG() ;
  11.      Db = Cfinal->GetB()*p+  (1-p)*Cinicio->GetB() ;
  12.      Da =  Cfinal->GetA()*p + (1-p)*Cinicio->GetA() ;
  13.  
  14.      Cor *cor = new Cor(Dr,Dg,Db,Da);
  15.  
  16.  
  17.      return cor;
  18.  
  19.  
  20. }
');