Skip to content

Instantly share code, notes, and snippets.

@jgranick
Created September 2, 2012 20:54
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/3604449 to your computer and use it in GitHub Desktop.
Save jgranick/3604449 to your computer and use it in GitHub Desktop.
Color transform bitmap
package;
import com.eclecticdesignstudio.motion.Actuate;
import nme.display.Bitmap;
import nme.display.BitmapData;
import nme.display.Sprite;
class TestNME extends Sprite {
public function new () {
super ();
var box = new Bitmap ();
var bitmapData = new BitmapData (100, 100, true, 0xFFFF0000);
box.bitmapData = bitmapData;
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