internal RowResultV2 OnRowEnd()
        {
            Color backgroundColor = FindBackgroundColor();
            Color foregroundColor = FindForegroundColor(backgroundColor);
            int   transitionCount = GetTransitionCount(backgroundColor);

            _countExactColors.Clear();
            _colorsInRow.Clear();

            return(new RowResultV2(backgroundColor, foregroundColor, transitionCount));
        }
 internal void OnRowBegin()
 {
     openTransitions.Clear();
     countExactPairs.Clear();
     countExactColors.Clear();
 }