def set_colors(self, colors):
        """(Re)build list of color widgets from given colors.

        Parameters
        ==========
        colors (list of colors)
            each color is represented by a list of integers
            in the range(256); such integers represent the
            values of the red, green and blue channels of
            the color, respectively; a fourth integer may
            also be present, representing the value of the
            alpha channel of the color.
        """
        ### create a special list containing a color widget
        ### for each given color

        self.widgets = List2D(Color2D(*COLOR_WIDGET_SIZE, color) for color in colors)

        ### align the rects of each color widget one beside
        ### the other
        self.widgets.rect.snap_rects_ip("topright", "topleft")

        ### align the topleft of the color widgets
        ### collectively to the topleft of the scroll area
        self.widgets.rect.topleft = self.scroll_area.topleft

        ### assign the first item (index 0) as the one
        ### representing the current selected color
        ### (the color whose values are displayed in the
        ### controls for edition)
        self.colors_editor.current_color_index = 0

        ### store a reference to the widget in that
        ### position, which we call the current widget
        self.store_current_widget()

        ### and finally, since we picked a widget and its
        ### color as the current one, let's display that
        ### color in the controls so it can be seen/edited
        self.colors_editor.set_color_on_controls(self.current_widget.color)
(Re)build list of color widgets from given colors.

        Parameters
        ==========
        colors (list of colors)
            each color is represented by a list of integers
            in the range(256); such integers represent the
            values of the red, green and blue channels of
            the color, respectively; a fourth integer may
            also be present, representing the value of the
            alpha channel of the color.
        
nodezator/colorsman/editor/panel/colorsop.py