Skip to content

Instantly share code, notes, and snippets.

@staypufd
Created May 15, 2020 23:57
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 staypufd/bf27309fc21e926c3784cc34b7fc05bc to your computer and use it in GitHub Desktop.
Save staypufd/bf27309fc21e926c3784cc34b7fc05bc to your computer and use it in GitHub Desktop.
initialize
| sampleCell width height n |
super initialize.
n := self cellsPerSide.
sampleCell := LOCell new.
width := sampleCell width.
height := sampleCell height.
self bounds: (5 @ 5 extent: (width * n) @ (height * n) + (2 * self borderWidth)).
cells := Array2D new: 5 tabulate: [ :i :j | self newCellAt: i at: j].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment