An activity for a change of color.  
 More...
#include <gf/Activities.h>
An activity for a change of color. 
- See also
 - gf::Tween 
 
 
◆ ColorActivity()
Constructor. 
- Parameters
 - 
  
    | origin | The origin value  | 
    | target | The target value  | 
    | color | A reference on the value  | 
    | duration | The duration of the tween  | 
    | easing | The easing for the interpolation  | 
  
   
 
 
◆ getDuration()
  
  
      
        
          | Time gf::ColorActivity::getDuration  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinenoexcept   | 
  
 
Get the duration of the activity. 
- Returns
 - The current duration 
 
 
 
◆ getOrigin()
  
  
      
        
          | Color4f gf::ColorActivity::getOrigin  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinenoexcept   | 
  
 
Get the origin of the activity. 
- Returns
 - The current origin 
 
 
 
◆ getTarget()
  
  
      
        
          | Color4f gf::ColorActivity::getTarget  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinenoexcept   | 
  
 
Get the target of the activity. 
- Returns
 - The current target 
 
 
 
◆ restart()
  
  
      
        
          | virtual void gf::ColorActivity::restart  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
overridevirtual   | 
  
 
 
◆ run()
Run the activity. 
- Parameters
 - 
  
    | time | The time since the last run  | 
  
   
- Returns
 - The status of the activity (running or finished) 
 
Implements gf::Activity.
 
 
◆ setDuration()
  
  
      
        
          | void gf::ColorActivity::setDuration  | 
          ( | 
          Time  | 
          duration | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Change the duration of the activity. 
- Parameters
 - 
  
  
 
 
 
◆ setOrigin()
  
  
      
        
          | void gf::ColorActivity::setOrigin  | 
          ( | 
          Color4f  | 
          origin | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Change the origin of the activity. 
- Parameters
 - 
  
  
 
 
 
◆ setTarget()
  
  
      
        
          | void gf::ColorActivity::setTarget  | 
          ( | 
          Color4f  | 
          target | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Change the target of the activity. 
- Parameters
 -