Skip to content

Instantly share code, notes, and snippets.

@ambethia
Created March 31, 2016 18:03
Show Gist options
  • Select an option

  • Save ambethia/a395eaded196a06e652f991838d8dec5 to your computer and use it in GitHub Desktop.

Select an option

Save ambethia/a395eaded196a06e652f991838d8dec5 to your computer and use it in GitHub Desktop.
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