Closed
Description
TileGrid.setitem enforces, but does not document, a limitation to 255 tile elements.
This limitation is not great for my needs, but the failure to document what's going on, or provide a more informative error message, led to a merry hour of debugging. TileGrid also doesn't allow introspection in any way of how many tiles are available to be addressed, so I was extremely confused until I finally just tried "keep setting tiles up to the highest index valid until we crash," at which point I discovered the crash at 256, which immediately suggested a problem with TileGrid, not the design of the bitmap I was indexing into.