def colour(contents, colour):
    wrapper = VerticalPanel()
    wrapper.add(contents)
    DOM.setStyleAttribute(wrapper.getElement(), "background-color", colour)
    return wrapper

#############################################################################
build map of thresholds to colours.
dataset/ETHPy150Open pyjs/pyjs/examples/showcase/src/uiHelpers.py/colour--crossover with--dataset/ETHPy150Open CGATOxford/cgat/scripts/go2svg.py/GoPlot.buildColourMap