Skip to content

Instantly share code, notes, and snippets.

@jgranick

jgranick/SimpleHX.hx

Created Oct 31, 2011
Embed
What would you like to do?
Now using NME instead
import nme.display.Sprite;
class SimpleHX extends Sprite {
public function new () {
super ();
var triangle = new Sprite ();
triangle.graphics.beginFill (0xFF0000);
triangle.graphics.moveTo (0, 0.5, 0);
triangle.graphics.lineTo (-0.5, -0.5, 0);
triangle.graphics.lineTo (0.5, -0.5, 0);
triangle.graphics.endFill ();
triangle.scaleX = 100;
triangle.scaleY = 100;
addChild (triangle);
}
public static main () {
new SimpleHX ();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment