Pygame Draw Lines - Shapes are pretty easy so let's start with those. Web drawing a line with pygame draw. Drawing rects with width now draws the width correctly inside the rect's area, rather than using an. Web changed in pygame 2.1.1: Web import pygame as pg # initializing the screen pg.init() screen = pg.display.set_mode((200, 200)) # setting. You can use the pygame.draw.line() function to draw a simple line: The shapes we can draw in pygame are :
The shapes we can draw in pygame are : Drawing rects with width now draws the width correctly inside the rect's area, rather than using an. Web drawing a line with pygame draw. You can use the pygame.draw.line() function to draw a simple line: Web changed in pygame 2.1.1: Shapes are pretty easy so let's start with those. Web import pygame as pg # initializing the screen pg.init() screen = pg.display.set_mode((200, 200)) # setting.