Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #107.67K
~79 People Reached
Favorite Forums
Favorite Tags
c x 1

1 Posted Topic

Member Avatar for joydsouza90

Plz help [CODE]import pygame from pygame.locals import * import sys White=(255, 255, 255) Yellow=(255, 255, 0) #WIDTH=848 #HEIGHT=640 IMAGE="baby.jpg" graphic = pygame.image.load(IMAGE) screen = pygame.display.set_mode((graphic.get_width(),graphic.get_height())) graphic=graphic.convert() pygame.display.set_caption('Coloring') screen.blit(graphic, (0, 0)) pygame.display.flip() mousex = 0 mousey = 0 def flood(oldcolour,newColour,x,y): workpile=[] workpile.append((x,y)) while len(workpile)> 0: x,y=workpile[0] del workpile[0] if graphic.get_at((x,y))==oldcolour: graphic.set_at((x,y),newColour) …

Member Avatar for 007himanshujain
0
79

The End.