RGBWithRGB = function (r1, g1, b1, r2, g2, b2, length, index)
{
    if (length === undefined) { length = 100; }
    if (index === undefined) { index = 0; }

    var t = index / length;
    var r = Linear(r1, r2, t);
    var g = Linear(g1, g2, t);
    var b = Linear(b1, b2, t);

    return {
        r: r,
        g: g,
        b: b,
        a: 255,
        color: GetColor(r, g, b)
    };
}
Interpolates between the two given color ranges over the length supplied.

@function Phaser.Display.Color.Interpolate.RGBWithRGB
@memberof Phaser.Display.Color.Interpolate
@static
@since 3.0.0

@param {number} r1 - Red value.
@param {number} g1 - Blue value.
@param {number} b1 - Green value.
@param {number} r2 - Red value.
@param {number} g2 - Blue value.
@param {number} b2 - Green value.
@param {number} [length=100] - Distance to interpolate over.
@param {number} [index=0] - Index to start from.

@return {Phaser.Types.Display.ColorObject} An object containing the interpolated color values.