moai/moai-dev — pull request #456 by CharlesHolbrow (2012-09-06 04:26:22+00:00)
Title: Adding fill method to MOAIGrid. 

I find myself needing to fill MOAIGrid with a single Non-zero value. I like this better than iterating over the grid in Lua or streaming the tiles in.

I've tested it in my game and with a the deck/tilemap-animated sample. Also tried to break it by using on an MOAIGrid without calling grid:setSize first, but it's working fine.

This is my first contribution to a open source repo, and I'm not exactly sure of the etiquette. Does a change like this warrant an example in the samples folder?