Created
September 2, 2012 20:54
-
-
Save jgranick/3604449 to your computer and use it in GitHub Desktop.
Color transform bitmap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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