Skip to content

lucasmotta/Distribute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Distribute is an ActionScript class where you can distribute Display Objects along a path. You can distribute using the default paths, like rectangle, triangle, polygon, circle and star. Or you can create your own path very easily.

To distribute your children, do this:
Distribute.rectangle(items : Array, width : int, height : int, align : String = DistributeAlign.TOP_LEFT);

You can orient your objects to the path like this:
Distribute.rectangle(items, 400, 200).orientToPath();

Feel free to use whatever you want.

About

A helpful class to distribute display objects into a path

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published