Skip to content

Instantly share code, notes, and snippets.

View mrrocks's full-sized avatar
🤓
Learning

Fran Pérez mrrocks

🤓
Learning
View GitHub Profile
layerNames = ["layerA", "layerB"]
layers = {}
for layerName in layerNames
layers[layerName] = new Layer backgroundColor:"red"
for layerName, layer of layers
print layerName, layer