しばらく使ってなくて忘れそうになったのでメモ。
1 int n = CGColorGetNumberOfCo mponents(color); 2 float (*comps)[n] = (float(*)[n])CGColorGet Components (color);
C99は良いなあ。
posted by
genki
on Fri 31 Oct 2008
at 15:45