Created
May 17, 2011 03:56
-
-
Save lucasmotta/975920 to your computer and use it in GitHub Desktop.
Usage - Distribute children on a path of a star.
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
// You just have to call the static method "star" and set the parameters of your star | |
var instance : IDistribute = Distribute.star(items : Array, points : uint, innerRadius : Number = 50, outerRadius : Number = 100, align : String = null); | |
// And if you want your items rotate according to the path, do this: | |
var instance : IDistribute = Distribute.star(items, 5, 50, 100, null).orientToPath(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment