HOW to draw a RECTANGLE on pygame window || PYGAME-PYTHON HINDI TUTORIAL

Published: 26 September 2021
on channel: CODING LIFE
100
0

PYTHON PLAYLIST:

   • Python PROGRAMMING  
CODE:

import pygame
pygame.init()

x = 700
y = 700

green = (0,255,0)

win = pygame.display.set_mode((x,y))

over = False

rx = 350
ry = 350

pygame.draw.rect(win,green,[rx,ry,50,60])

pygame.draw.rect(windowName,color,[x,y,length,breadth])

while over == False:
for event in pygame.event.get():
if event.type == pygame.QUIT:
over = True

pygame.display.update()

pygame.quit()
quit()


On this page of the site you can watch the video online HOW to draw a RECTANGLE on pygame window || PYGAME-PYTHON HINDI TUTORIAL with a duration of hours minute second in good quality, which was uploaded by the user CODING LIFE 26 September 2021, share the link with friends and acquaintances, this video has already been watched 100 times on youtube and it was liked by 0 viewers. Enjoy your viewing!