Use pixelArray or other shapes from pygameHelloWorld.py and what you learned from previous assignments to write the program drawpad_YI.py
# get a pixel array of the surface pixArray = pygame.PixelArray(windowSurface) pixArray[480][380] = BLACK
Some helpful syntax:
pixArray = pygame.PixelArray(windowSurface) pixArray[400][100] = BLACK pixArray[pygame.mouse.get_pos()[0]][pygame.mouse.get_pos()[1]] = BLACK del pixArray
pygame.mouse.get_pos()–> [x,y]
pygame.mouse.get_pos()[0] –> x
pygame.mouse.get_pos()[1] –> y