Skip to content

Instantly share code, notes, and snippets.

@lucasmotta
Created May 17, 2011 03:56
Show Gist options
  • Save lucasmotta/975920 to your computer and use it in GitHub Desktop.
Save lucasmotta/975920 to your computer and use it in GitHub Desktop.
Usage - Distribute children on a path of a star.
// 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