Created
August 27, 2014 13:54
-
-
Save diverted247/a1687b62c164bed96cf1 to your computer and use it in GitHub Desktop.
Example PathText Usage
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
stage = new createjs.Stage( canvas ); | |
var text = new txt.PathText( { | |
text:'The fox jumped over the log.', | |
font:'bernhardmodern bolditalic', | |
path:'m258 178 a 11 11 0 0 0 11 -11 a 19 19 0 0 0 -19 -19 a 29 29 0 0 0 -29 29 a 48 48 0 0 0 48 48 a 78 78 0 0 0 78 -78 a 126 126 0 0 0 -126 -126 a 205 205 0 0 0 -205 205 a 331 331 0 0 0 331 331 a 536 536 0 0 0 536 -536', | |
spacing:0, | |
size:100, | |
x:100, | |
y:100, | |
debug:true | |
} ); | |
stage.addChild( text ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment