Update range colour script.

Credits to Tuller.