Sep-14-2019, 03:39 PM
I am creating a game and I want to include colour and I am setting variables to their appropriate value, I here 'color' has to be spelt like that. But I get the error message:
GREEN = color('#00FF00')
NameError: name 'color' is not defined
GREEN = color('#00FF00')
NameError: name 'color' is not defined
#colours being assigned GREEN = color('#00FF00') BLUE = color('#1E90FF') RED = color('#FF0000') YELLOW = color('#FFFF00') BLACK = color('#000000') WHITE = color('#FFFFFF') ORANGE = color('#FFA500') GOLD = color('#FFD700') PINK = color('#FF69B4')Any help is appreciated, thanks