Re: New game on ADC Web site?
Re: New game on ADC Web site?
- Subject: Re: New game on ADC Web site?
- From: Florent Pillet <email@hidden>
- Date: Tue, 8 Mar 2005 13:02:41 +0100
Funny one... Here we go:
1. CIImage source should be CIImage *source
2. CIImage result should be CIImage *result
3. CIFilter hueAdjust should be CIFilter *hueAdjust
4. Missing [ at first hueAdjust assignment
5. Wrong method name on same line, should be filterWithName
6. Missing ] after numberWithFloat...
What do we win? ;-)
On 8 mars 05, at 12:12, Stephane Sudre wrote:
On 8 mars 05, at 12:07, Stephane Sudre wrote:
http://developer.apple.com/macosx/tiger/coreimage.html
Find the apparently obvious 5 bugs in the first 12 lines sample code.
[...]
NSURL *url;
CIImage source;
CIImage result;
CIFilter hueAdjust;
url = [NSURL fileURLWithPath:path];
source = [CIImage imageWithContentsOfURL:url];
hueAdjust = CIFilter filterWIthName:@"CIHueAdjust"];
[hueAdjust setDefaults];
[hueAdjust setValue:source forKey:@"inputImage"];
[hueAdjust setValue:[NSNumber numberWithFloat:2.094
forKey:@"inputAngle"];
result = [hueAdjust valueForKey:@"outputImage"];
[...]
The 6th one is less obvious to find if you don't have an eagle's sight.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
--
Florent Pillet http://www.florentpillet.com
Freelance software developer/consultant - Palm OS & Mac OS X
ICQ: 117292463 Skype: callto://florent.pillet
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden