Added distance generation for colours