Skip to content

Instantly share code, notes, and snippets.

@jaredpalmer
Forked from koenbok/frid.coffee
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaredpalmer/473171a36ac2a38763b4 to your computer and use it in GitHub Desktop.
Save jaredpalmer/473171a36ac2a38763b4 to your computer and use it in GitHub Desktop.
rows = 30
cols = 30
gutter = 16
width = 50
height = 50
for rowIndex in [0..rows-1]
for colIndex in [0..cols-1]
cellLayer = new Layer
width: width
height: height
x: colIndex * (width + gutter)
y: rowIndex * (height + gutter)
Utils.labelLayer cellLayer, "#{rowIndex}:#{colIndex}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment