SVGRadialGradientBrush.PreColorProcess C# (CSharp) Method

PreColorProcess() private method

private PreColorProcess ( int index ) : void
index int
return void
    private void PreColorProcess(int index)
    {
        float dp = _stopOffsetList[index + 1] - _stopOffsetList[index];

        _deltaR = (_stopColorList[index + 1].r - _stopColorList[index].r) / dp;
        _deltaG = (_stopColorList[index + 1].g - _stopColorList[index].g) / dp;
        _deltaB = (_stopColorList[index + 1].b - _stopColorList[index].b) / dp;
    }