Skip to content

Instantly share code, notes, and snippets.

@koenbok
Created June 30, 2014 22:04
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