vreScale2Colours function

Scale a number from a range into a colour gradient.