Advertisement
sacredgeometry

Untitled

Sep 26th, 2017
3,566
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. base = new Layer
  2.     backgroundColor: null
  3.  
  4. names = ["Mary", "Steve", "Anne"]
  5. for i in [0...3]
  6.     rows = new Layer
  7.         html: names[i]
  8.         parent: base
  9.         y: 45 * i
  10.         height: 44
  11.         name: "layer" + (i+1)
  12.  
  13. base.children[0].style =
  14.     background: "blue"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement