Tag: 调色板

sorting颜色(Objective-C)

我正在做这样的事情: – (NSArray*)colors { float divisor = .3333; NSMutableArray *retVal = [NSMutableArray array]; for (float one=0; one <= 1.0f; one += divisor) { for (float two = 0; two <= 1.0f; two += divisor) { for (float three = 0; three <= 1.0f; three += divisor) { UIColor *color = [UIColor colorWithRed:one green:two blue:three alpha:.5]; […]