-1
target = pygame.Rect(200, 300, 40, 50)

def draw():
    win.fill(white)
    pygame.draw.circle(win, green, pygame.mouse.get_pos(), 80)
    pygame.draw.rect(win, black, cross_hair)
    pygame.display.update()

def main():
    ... #some events loop
    target.collidepoint(#the circle)
    # should draw the parts which are in the circle

so how to draw only parts of the rectangle in a circle like a torch

igr2020
  • 1
  • 1

0 Answers0