Function game::ltn::draw_cells::draw_cells [−][src]
pub fn draw_cells(
map: &Map,
neighborhood: &Neighborhood
) -> (GeomBatch, Vec<Color>)
Expand description
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.