from bge import logic
from timing import timing

from berlin_clock_008 import color_a 
from berlin_clock_008 import color_b 
from berlin_clock_008 import color_c 
from berlin_clock_008 import color_d 
from berlin_clock_008 import color_e 
from berlin_clock_008 import color_f 

res = timing()

# get the scene
scene = logic.getCurrentScene()

# coall the objects in the scene
for name in res.keys():
    scene.objects[name].color = (color_a, color_b, color_c, .7) \
                                if res[name] else (color_d,
                                                   color_e,
                                                   color_f, 1)