And if you do want to use `CGColorGetComponents`, you should use `CGColorGetNumberOfComponents` in order to do it safely. (But see my previous comment - there is no reason to do it this way because the algorithm in question is dependent on an RGB color space.)