Module game::ltn::draw_cells [−][src]
Constants
Functions
Returns a set of adjacent indices. The pairs are symmetric – (x, y) and (y, x) will both be populated. Adjacency with boundary_marker doesn’t count.
Partition a neighborhood’s boundary polygon based on the cells. Currently this discretizes space into a grid, so the results don’t look perfect, but it’s fast. Also returns the color for each cell, so that adjacent cells have different colors.