def set_current_color(self, color):
        """Update color on current color widget."""
        ### if not already, bring color widget to visible
        ### area
        self.color_widget_to_visible_area()

        ### if current color widget's color is equal to the
        ### given color, there's no need to update it,
        ### so we return early
        if self.current_widget.color == color:
            return

        ### otherwise set color on the widget
        self.current_widget.set_color(color)
Update color on current color widget.
nodezator/colorsman/editor/panel/colorsop.py