1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
-(void)mouseUp:(NSEvent *)e { ; } -(void)updatePositionForColor:(NSColor *)color { float saturation, hue, bright, alpha; ; hue *= 359; location.x = (saturation*24)*cos(hue*(M_PI/180))+29; location.y = ((saturation/100)*24)*sin(hue*(M_PI/180))+29; NSLog(@"Sat: %f\nHue: %f", saturation, hue); NSLog(@"Location: %@", NSStringFromPoint(location)); ; } |
Pastie
