// Set draws cell content and styling at a given position in the grid. If the
// position is out of range, the function does nothing.
Set draws cell content and styling at a given position in the grid. If the
position is out of range, the function does nothing.
// Set draws cell content and styling at a given position in the grid . If the // position is out of range the function does nothing .
func (gd Grid) Set(p Point, c Cell) {
	q := p.Add(gd.Rg.Min)
	if !q.In(gd.Rg) {
		return
	}
	i := q.Y*gd.Ug.Width + q.X
	gd.Ug.Cells[i] = c
}
func ( gd Grid ) Set ( p Point , c Cell ) { q := p . Add ( gd . Rg . Min ) if ! q . In ( gd . Rg ) { return } i := q . Y * gd . Ug . Width + q . X gd . Ug . Cells [ i ] = c }
Set draws cell content and styling at a given position in the grid.
Set draws cell content and styling at a given position in the grid .