UPDATE: added function rainbowPalette for perceptually optimised rainbow colours
bumped version