29 #ifndef THOR_COLORANIMATION_HPP
30 #define THOR_COLORANIMATION_HPP
58 template <
class Animated>
59 void operator() (Animated& animated,
float progress)
const;
73 template <
class Animated>
81 #endif // THOR_COLORANIMATION_HPP
Class thor::ColorGradient.
void setColor(T &object, const sf::Color &color)
Sets the color of a graphical object.
Definition: AnimationMap.hpp:42
Configuration header of the library.
Changes an object's color smoothly over time.
Definition: ColorAnimation.hpp:45
sf::Color sampleColor(float position) const
Interpolates a color in the gradient.
void operator()(Animated &animated, float progress) const
Animates the object.
Definition: ColorAnimation.hpp:74
Class to implement color gradients.
Definition: ColorGradient.hpp:49