Skip to content

Instantly share code, notes, and snippets.

@jgranick
Created September 2, 2012 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgranick/3604372 to your computer and use it in GitHub Desktop.
Save jgranick/3604372 to your computer and use it in GitHub Desktop.
Color transform
package;
import com.eclecticdesignstudio.motion.Actuate;
import nme.display.Sprite;
class TestNME extends Sprite {
public function new () {
super ();
var box = new Sprite ();
box.graphics.beginFill (0xFF0000);
box.graphics.drawRect (0, 0, 100, 100);
addChild (box);
Actuate.tween (box, 4, { x: 200, y: 200 });
Actuate.transform (box, 4).color (0x00FF00, 1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment