Drawing Pygame at Drawing

Drawing Pygame. Import pygame pygame.init () screen = pygame.display.set_mode ( (x, y)) #x and y are height and width pygame.draw.circle (screen, (r,g,b), (x, y), r, w) # (r, g, b) is color, (x, y) is center, r is radius and w is the thickness of the circle border. Share improve this answer edited dec 30 '20 at 12:36

Programming for beginners Pygame Draw Rectangle
Programming for beginners Pygame Draw Rectangle from self-learning-java-tutorial.blogspot.com

Most of the functions take a width argument. Pygame draw draw a rectangle. Share improve this answer edited dec 30 '20 at 12:36

Programming for beginners Pygame Draw Rectangle

To draw a polygon we use pygame’s polygon function. Pygame.draw.circle(surface, color, center, radius, width) parameters : This function can take several parameters, the most important of which are : Most of the functions take a width argument.