def draw_colliding(self, rect):
        """Draw obj on screen if collides with given rect.
        rect
            Any instance of pygame.Rect
        """
        for obj in self:
            if rect.colliderect(obj.rect):
                blit_on_screen(obj.image, obj.rect)
Draw obj on screen if collides with given rect.
        rect
            Any instance of pygame.Rect
        
nodezator/classes2d/collections.py