scale pulse effect by EffectColors for added control

This commit is contained in:
Chris Danford
2004-12-27 03:25:09 +00:00
parent 81bc59321f
commit d544ea4972
2 changed files with 12 additions and 5 deletions
+2 -1
View File
@@ -123,7 +123,8 @@ public:
RageColor operator - ( const RageColor& other ) const { return RageColor( r-other.r, g-other.g, b-other.b, a-other.a ); }
RageColor operator * ( const RageColor& other ) const { return RageColor( r*other.r, g*other.g, b*other.b, a*other.a ); }
RageColor operator * ( float f ) const { return RageColor( r*f, g*f, b*f, a*f ); }
// RageColor operator / ( float f ) const { return RageColor( r/f, g/f, b/f, a/f ); }
// Divide is useful for using with the SCALE macro
RageColor operator / ( float f ) const { return RageColor( r/f, g/f, b/f, a/f ); }
friend RageColor operator * ( float f, const RageColor& other ) { return other*f; } // What is this for? Did I add this? -Chris