def get_single_color_surface(fill_color):
    """Return custom surface representing a single color.

    Parameters
    ==========
    fill_color (tuple of integers)
        the color the surface created represents; the
        integers are in the range(0, 256) interval and
        represent the values of the RGB(A) channels
        of a color.
    """
    ### create a completely transparent button surface

    color_unit_surf = Surface(SINGLE_COLOR_SIZE).convert_alpha()
    color_unit_surf.fill((0, 0, 0, 0))

    ###
    color_surf = COLOR_UNIT_MASK.get_colored_surface(fill_color)

    ### now blit all other surfaces over the button surface

    for surf in (
        CHECKERED_SURF,  ## checkered pattern
        color_surf,  ## color filling
        COLOR_UNIT_OUTLINE_SURF,
    ):
        color_unit_surf.blit(surf, (0, 0))

    ### finally return the surface
    return color_unit_surf
Return custom surface representing a single color.

    Parameters
    ==========
    fill_color (tuple of integers)
        the color the surface created represents; the
        integers are in the range(0, 256) interval and
        represent the values of the RGB(A) channels
        of a color.
    
nodezator/widget/colorbutton.py