Re: Pie shapes
Re: Pie shapes
- Subject: Re: Pie shapes
- From: R T <email@hidden>
- Date: Thu, 19 May 2005 13:04:58 -0700 (PDT)
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
To Mr. Henry McGilton and all concerned...I
appologize. I quickly cut down a larger block of
code. In the name of accuracy, which in the future I
will diligently persue here is a working block of
code.... Tested!
float num = 1, rr, gg, bb, y = 200, ct = 0;
NSPoint aPt = {223, 223}; NSBezierPath *bp =
[NSBezierPath bezierPath]; [bp moveToPoint:aPt];
do{
rr = num/255;
gg = num/255;
bb = num/255;
[[NSColor colorWithCalibratedRed:rr green:gg blue:bb
alpha:1.0] set];
[bp appendBezierPathWithArcWithCenter:aPt radius:y
startAngle:108 endAngle:120];
[bp closePath];
[bp fill]; [bp removeAllPoints]; [bp
moveToPoint:aPt];
num += 16; y -= 10; ct += 16;
}while(ct<255);
Thanks, Mr McGilton
Rick T
__________________________________
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
http://mobile.yahoo.com/learn/mail
_______________________________________________
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