// Fill sets the given cell as content for all the grid positions.
Fill sets the given cell as content for all the grid positions.
// Fill sets the given cell as content for all the grid positions .
func (gd Grid) Fill(c Cell) {
	if gd.Ug == nil {
		return
	}
	w := gd.Rg.Max.X - gd.Rg.Min.X
	switch {
	case w > 8:
		gd.fillcp(c)
	case w == 1:
		gd.fillv(c)
	default:
		gd.fill(c)
	}
}
func ( gd Grid ) Fill ( c Cell ) { if gd . Ug == nil { return } w := gd . Rg . Max . X - gd . Rg . Min . X switch { case w > 8 : gd . fillcp ( c ) case w == 1 : gd . fillv ( c ) default : gd . fill ( c ) } }
Fill sets the given cell as content for all the grid positions.
Fill sets the given cell as content for all the grid positions .