Poprawki koloru przycisków

This commit is contained in:
Sara Kowalska 2020-05-04 11:40:14 +02:00
parent 04622d22aa
commit c6ab27d6a3

View File

@ -537,7 +537,7 @@ def redrawWindow(surface):
surface.blit(image, (puddles[i][0] * sizeBetween + 1, puddles[i][1] * sizeBetween + 1)) surface.blit(image, (puddles[i][0] * sizeBetween + 1, puddles[i][1] * sizeBetween + 1))
drawGrid(width, rows, surface) drawGrid(width, rows, surface)
button("Rozpoznawanie talerzy", 0, width + 1, 198, 48, beige, white) button("Rozpoznawanie talerzy", 0, width + 1, 198, 48, light_beige, white)
pygame.display.update() pygame.display.update()
@ -581,9 +581,10 @@ def makeImgClassificator(model):
metrics=['accuracy']) metrics=['accuracy'])
def main(): def main():
global width, rows, bot, beige, white, black, sizeBetween, tables, kitchen, cantwalk, puddles, window, clock, \ global width, rows, bot, light_beige, beige, white, black, sizeBetween, tables, kitchen, cantwalk, puddles, window, clock, \
img_classify img_classify
# skróty do kolorów # skróty do kolorów
light_beige = (255, 240, 205)
beige = (255, 205, 178) beige = (255, 205, 178)
white = (255, 255, 255) white = (255, 255, 255)
black = (0, 0, 0) black = (0, 0, 0)
@ -632,7 +633,7 @@ def main():
if event.type == pygame.QUIT: if event.type == pygame.QUIT:
pygame.quit() pygame.quit()
quit() quit()
button("Rozpoznawanie talerzy", 0, width + 1, 198, 48, beige, white, classify) button("Rozpoznawanie talerzy", 0, width + 1, 198, 48, light_beige, white, classify)
redrawWindow(window) redrawWindow(window)
#bot.moveRandomly() #bot.moveRandomly()
#goal = (1, 3) #goal = (1, 3)