Browse files

readme update

  • Loading branch information...
1 parent ba6ee91 commit b71fe4e86d3252529c80506d3eef131fcdcd5ed7 @xconstruct committed Nov 14, 2009
Showing with 3 additions and 1 deletion.
  1. +1 −1 LibFx-1.1.lua
  2. +2 −0 README.mkd
View
2 LibFx-1.1.lua
@@ -197,7 +197,7 @@ end, function(fx)
end)
LibFx.RegisterAnimation("VertexColor", function(fx)
- fx.sR, fx.sG, fx.sB = = fx.frame:GetVertexColor()
+ fx.sR, fx.sG, fx.sB = fx.frame:GetVertexColor()
fx.dR, fx.dG, fx.dB = fx.r-fx.sR, fx.g-fx.sG, fx.b-fx.sB
end, function(fx)
fx.frame:SetVertexColor(fx.sR+fx.dR*fx.progress, fx.sG+fx.dG*fx.progress, fx.sB+fx.dB*fx.progress)
View
2 README.mkd
@@ -30,6 +30,7 @@ FxTable / FxObject options
* ramp: String or table how the animation should progress (default: Linear)
* frame: The frame which should be animated
* delay: time in seconds before the animation should start (default: 0)
+* loop: Start the animation again after it stopped (default: nil)
* onStart: Optional function which is called on startup with func(frame, fxObject)
* onComplete: Optional function which is called on stop with func(frame, fxObject)
@@ -52,6 +53,7 @@ Default animations
* Width: Set the frame's width to the value of fxTable.finish
* Rotate: Rotate the frame by the value of fxTable.rad (radians) or fxTable.deg (degrees)
* Translate: Move the frame by fxTable.xOffset and fxTable.yOffset
+* VertexColor: Change the color of the texture to fxTable.r, fxTable.g, fxTable.b
Default ramps
-------------

0 comments on commit b71fe4e

Please sign in to comment.