void setForeground(int index, int value) { _ensureCapacity(index); _data[index * _cellSize + _cellForeground] = value; }