Skip to content

Instantly share code, notes, and snippets.

@koenbok
Created January 16, 2015 10:47
Show Gist options
  • Save koenbok/147c23b150676e0d7d66 to your computer and use it in GitHub Desktop.
Save koenbok/147c23b150676e0d7d66 to your computer and use it in GitHub Desktop.
layerNames = ["layerA", "layerB"]
layers = {}
for layerName in layerNames
layers[layerName] = new Layer backgroundColor:"red"
for layerName, layer of layers
print layerName, layer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment