Created
March 31, 2016 18:03
-
-
Save ambethia/a395eaded196a06e652f991838d8dec5 to your computer and use it in GitHub Desktop.
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
| var actors = new Array<Int>(); | |
| var currentDepth = 0; | |
| for(depth in frame.actors.keys()) { | |
| var actor = frame.actors[depth].shape; | |
| depth < currentDepth ? actors.unshift(actor) : actors.push(actor); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment