def __init__(
        self, width, height, color, coordinates_name="topleft", coordinates_value=(0, 0)
    ):
        """Store arguments and perform setups.

        Parameters
        ==========

        width, height (integers)
            represent the size of each dimension of
            the widget in pixels.
        color (sequence of integers)
            represent a single color; the integers, in the
            range(256) represent the values of the red,
            green and blue channels, respectively; a fourth
            integer may also exist, representing the value
            for an alpha channel (used for transparency).
        coordinates_name (string)
            name of a pygame.Rect attribute wherein used
            to set a position in that attribute.
        coordinates_value (sequence with 2 integers)
            represents a position in 2d space used to
            position the widget; the attribute named in
            the coordinates_name attribute is set to the
            value of this argument.
        """
        ### store the width and height in a tuple
        ### representing the size
        self.size = width, height

        ### set the color and create widget's surface
        ### based on it
        self.set_color(color)

        ### create and store a rect for this widget, from
        ### its surface and position that rect

        self.rect = self.image.get_rect()

        setattr(self.rect, coordinates_name, coordinates_value)
Store arguments and perform setups.

        Parameters
        ==========

        width, height (integers)
            represent the size of each dimension of
            the widget in pixels.
        color (sequence of integers)
            represent a single color; the integers, in the
            range(256) represent the values of the red,
            green and blue channels, respectively; a fourth
            integer may also exist, representing the value
            for an alpha channel (used for transparency).
        coordinates_name (string)
            name of a pygame.Rect attribute wherein used
            to set a position in that attribute.
        coordinates_value (sequence with 2 integers)
            represents a position in 2d space used to
            position the widget; the attribute named in
            the coordinates_name attribute is set to the
            value of this argument.
        
nodezator/colorsman/color2d.py