Created
November 23, 2015 14:50
-
-
Save Teino1978-Corp/605f13f941cf13fa389b to your computer and use it in GitHub Desktop.
HTML5:easeljs Text
This file contains hidden or 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
// Create a new Text object, and position it on stage: | |
var txt = new Text("text on the canvas.", "36px Arial", "#FFF"); | |
txt.textBaseline = "top"; // draw text relative to the top of the em box. | |
txt.x = 100; | |
txt.y = 80; | |
txt.rotation = 20; | |
//txt.outline = true; | |
stage.addChild(txt); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment