So, is it possible to draw an image to four points in pygame? Like this: (Image demonstration)
Asked
Active
Viewed 93 times
1
-
You don't. Not with Pygame unless you use PyOpengl – Rabbid76 Jul 14 '22 at 04:55
1 Answers
0
From the pygame documentation
# Importing the library
import pygame
# Initializing Pygame
pygame.init()
# Initializing surface
surface = pygame.display.set_mode((400,300))
# Initialing Color
color = (255,0,0)
# Drawing Rectangle
pygame.draw.rect(surface, color, pygame.Rect(30, 30, 60, 60))
pygame.display.flip()

Nicolas Silva
- 105
- 9
-
1You completely misunderstood the question. The task is to fill a 4-point polygon with an image. This just draws a rectangle – Rabbid76 Jul 14 '22 at 04:58