How do I convert RGB into HSV in Cocoa Touch?
Posted
by Evelyn
on Stack Overflow
See other posts from Stack Overflow
or by Evelyn
Published on 2009-06-26T19:42:25Z
Indexed on
2010/04/04
17:53 UTC
Read the original article
Hit count: 336
I want to set the background color of a label using HSV instead of RGB. How do I implement this into code?
Code:
//.m file
#import "IBAppDelegate.h"
@implementation IBAppDelegate
@synthesize label;
{
self.label.backgroundColor = [UIColor colorWithRed:1.0f
green:0.8f
blue:0.0f
alpha:1.0f];
}
© Stack Overflow or respective owner