Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Cor *IC(Cor *Cinicio, Cor *Cfinal, float p)
- {
- int Dr = 0,
- Dg = 0,
- Db = 0,
- Da = 0;
- Dr = Cfinal->GetR()*p + (1-p)*Cinicio->GetR() ;
- Dg = Cfinal->GetG()*p+ (1-p)*Cinicio->GetG() ;
- Db = Cfinal->GetB()*p+ (1-p)*Cinicio->GetB() ;
- Da = Cfinal->GetA()*p + (1-p)*Cinicio->GetA() ;
- Cor *cor = new Cor(Dr,Dg,Db,Da);
- return cor;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement