Changed assertion in colour dist function

Allow alpha values (but they are ignored).