(surface, selection_rects)
Create visual feedback for selection onto a surface.
Create visual feedback for selection onto a surface.
Create visual feedback for selection onto a surface .
def create_feedback(surface, selection_rects):
    """Create visual feedback for selection onto a surface."""
    for r in selection_rects:
        work_area = surface.subsurface(pygame.Rect(r))
        orig = work_area.copy()
        # add 1 to the color as a highlight
        orig.fill(pygame.Color(0, 0, 1))
        work_area.blit(orig, (0, 0), special_flags=pygame.BLEND_ADD)
def create_feedback ( surface , selection_rects ) : for r in selection_rects : work_area = surface . subsurface ( pygame . Rect ( r ) ) orig = work_area . copy ( ) # add 1 to the color as a highlight orig . fill ( pygame . Color ( 0 , 0 , 1 ) ) work_area . blit ( orig , ( 0 , 0 ) , special_flags = pygame . BLEND_ADD )