]> git.tdb.fi Git - libs/demoscene.git/blobdiff - source/colorfade.cpp
Stop the animation when the action ends
[libs/demoscene.git] / source / colorfade.cpp
index dfe7472e04c49c8d1dfa34c9081da94fd65f07a7..bebc980943f0ba8d434c0a2f5cb901c4130d7563 100644 (file)
@@ -1,9 +1,10 @@
 #include "colorfade.h"
 
-using namespace Msp;
+namespace Msp {
+namespace DemoScene {
 
 ColorFadeAction::ColorFadeAction(const GL::Color &c):
-       Sequencer::InterpolationAction(true),
+       InterpolationAction(HERMITE),
        end_color(c)
 { }
 
@@ -23,3 +24,6 @@ void ColorFadeAction::interpolate(float t, float)
        c.a = start_color.a*(1-t)+end_color.a*t;
        set_color(c);
 }
+
+} // namespace DemoScene
+} // namespace Msp