• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Pie shapes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: When debugging myDocument, 'self' does not have a disclosure tirangle
  • Next by Date: Re: Why use protocols?
  • Previous by thread: Re: Pie shapes
  • Next by thread: HTTP server with NetSocket
  • Index(es):
    • Date
    • Thread