SVGRadialGradientBrush.GetStopList C# (CSharp) Method

GetStopList() private method

private GetStopList ( ) : void
return void
    private void GetStopList()
    {
        List<SVGStopElement> _stopList = _radialGradElement.stopList;
        int _length = _stopList.Count;
        if(_length == 0)
          return;

        _stopColorList.Add(_stopList[0].stopColor.color);
        _stopOffsetList.Add(0f);
        int i = 0;
        for(i = 0; i < _length; i++) {
          float t_offset = _stopList[i].offset;
          if((t_offset > _stopOffsetList[_stopOffsetList.Count - 1]) && (t_offset <= 100f)) {
        _stopColorList.Add(_stopList[i].stopColor.color);
        _stopOffsetList.Add(t_offset);
          } else if(t_offset == _stopOffsetList[_stopOffsetList.Count - 1])
        _stopColorList[_stopOffsetList.Count - 1] = _stopList[i].stopColor.color;
        }

        if(_stopOffsetList[_stopOffsetList.Count - 1] != 100f) {
          _stopColorList.Add(_stopColorList[_stopOffsetList.Count - 1]);
          _stopOffsetList.Add(100f);
        }
    }