Created
October 12, 2014 14:03
-
-
Save nicebarbarian/7a6edab73a54d063dcb1 to your computer and use it in GitHub Desktop.
framer.js: collection list
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
rows = 10 | |
gutter = 8 | |
width = 300 | |
height = 30 | |
for rowIndex in [0..rows-1] | |
cellLayer = new Layer | |
width: width | |
height: height | |
y: rowIndex * (height + gutter) | |
Utils.labelLayer cellLayer, rowIndex |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment