14 lines
268 B
Python
14 lines
268 B
Python
|
import random
|
||
|
BLACK = (0, 0, 0)
|
||
|
BROWN = (139, 69, 19)
|
||
|
WHITE = (255, 255, 255)
|
||
|
RED=(255,0,0)
|
||
|
GREEN=(0,255,0)
|
||
|
|
||
|
def random_color():
|
||
|
x=random.randint(0,3)
|
||
|
switcher={0:BROWN,
|
||
|
1:GREEN,
|
||
|
2:RED,
|
||
|
3:WHITE}
|
||
|
return switcher[x]
|