Extracted a couple of the colour manipulation functions into colourUtils.
Optimised triangulation algorithm.