equals(color)
    {
        if (!color) return false;

        if (this.normalized !== color.normalized)
        {
            Color._tempColor.copy(color);
            color = Color._tempColor;

            if (this.normalized)
            {
                color.normalize();
            }
            else
            {
                color.denormalize();
            }
        }

        return this.red === color.red
            && this.green === color.green
            && this.blue === color.blue;
    }
/**
     * Checks for equality with another color.
     *
     * @param {Color} color - The color to check equality against.
     * @return {boolean} True if they are equal.
     */
Checks for equality with another color.
@param {Color} color - The color to check equality against.
@return {boolean} True if they are equal.
Checks for equality with another color . @param { Color } color - The color to check equality against . @return { boolean } True if they are equal .
equals(color)
    {
        if (!color) return false;
        if (this.normalized !== color.normalized)
        {
            Color._tempColor.copy(color);
            color = Color._tempColor;
            if (this.normalized)
            {
                color.normalize();
            }
            else
            {
                color.denormalize();
            }
        }
        return this.red === color.red
            && this.green === color.green
            && this.blue === color.blue;
    }
equals ( color ) { if ( ! color ) return false ; if ( this . normalized !== color . normalized ) { Color . _tempColor . copy ( color ) ; color = Color . _tempColor ; if ( this . normalized ) { color . normalize ( ) ; } else { color . denormalize ( ) ; } } return this . red === color . red && this . green === color . green && this . blue === color . blue ; }
Checks for equality with another color.
Checks for equality with another color .