受到 iTunes 专辑视图功能的启发,SOZOChromoplast
快速而轻松地找到给定 UIImage
中的最相关颜色,每次都为您提供完美的颜色方案。
简单!
// Get an image
UIImage *someImage = [UIImage imageNamed:@"someImage.png"];
// Instantiate your chromoplast
SOZOChromoplast *chromoplast = [[SOZOChromoplast alloc] initWithImage:someImage];
// Use your colors!
self.view.backgroundColor = chromoplast.dominantColor;
self.label1.textColor = chromoplast.firstHighlight;
self.label2.textColor = chromoplast.secondHighlight;
更多信息,请参阅示例项目。