function getColor(color)
{
    if (!Array.isArray(color))
    {
        return getSingleColor(color);
    }
    else
    {
        for (let i = 0; i < color.length; ++i)
        {
            color[i] = getSingleColor(color[i]);
        }

        return color;
    }
}
function getColor(color)
{
    if (!Array.isArray(color))
    {
        return getSingleColor(color);
    }
    else
    {
        for (let i = 0; i < color.length; ++i)
        {
            color[i] = getSingleColor(color[i]);
        }

        return color;
    }
}
function getColor ( color ) { if ( ! Array . isArray ( color ) ) { return getSingleColor ( color ) ; } else { for ( let i = 0 ; i < color . length ; ++ i ) { color [ i ] = getSingleColor ( color [ i ] ) ; } return color ; } }
Utility function to convert hexadecimal colors to strings, and simply return the color if it's a string.
This version can also convert array of colors
@private
@param {number|number[]} color
@return {string} The color as a string.
Utility function to convert hexadecimal colors to strings and simply return the color if it s a string . This version can also convert array of colors
getColor returns the color of the node