Detect the object using its own color in Pygame
In this pygame example, I will create a triangle and fill it up with the color of my choice. Next, I am going to create a small program that will detect that object using its own color as a hint. Below is the entire python program which will use the pygame.mouse.get_pos() method to return the…
Read More “Detect the object using its own color in Pygame” »