Horje
how to draw a rectangle in pygame Code Example
pygame draw rect syntax
pygame.draw.rect(SURFACE, RGB_COLOR, (X, Y, WIDTH, HEIGHT))
pygame how to draw a rectangle
 pygame.draw.rect(DISPLAY,BLUE,(200,150,100,50))
pygame.draw.rect()
gameDisplay = pygame.display.set_mode((width,height))
bright_blue =(0,255,255)

# draw rectangle 
pygame.draw.rect(gameDisplay, bright_blue ,(611,473,100,50))
pygame circle
circle(surface, color, center, radius)
how to draw a rectangle in pygame
# 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()




Python

Related
table is not creating in django Code Example table is not creating in django Code Example
split column and rename them Code Example split column and rename them Code Example
python tf.maximum Code Example python tf.maximum Code Example
compressed list Code Example compressed list Code Example
np array specified lengte same value Code Example np array specified lengte same value Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7