setColorRepresentation(type) {

        // Force uppercase to allow a case-sensitiv comparison
        type = type.toUpperCase();

        // Find button with given type and trigger click event
        return !!this._root.interaction.options
            .find(v => v.getAttribute('data-type').startsWith(type) && !v.click());
    }
Changes the color _representation.
Allowed values are HEX, RGB, HSV, HSL and CMYK
@param type
@returns {boolean} if the selected type was valid.