• 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: Bezier Paths.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bezier Paths.


  • Subject: Re: Bezier Paths.
  • From: Ricky Sharp <email@hidden>
  • Date: Wed, 28 Dec 2005 18:19:10 -0600


On Dec 28, 2005, at 6:08 PM, Brian O'Brien wrote:

Hi, I need to write a method that constructs a bezier path and returns it.

Lets say for example that I have 4 points.
I want to draw three rectangles in red and one rectangle in blue.
The four points represent the centers of each of the rectangles.

So how do I construct this path and return it so that it can be passed
on to another class and rendered with the proper colors?

It sounds like you want a single path to represent all four rectangles and when it's drawn, you want to use multiple colors? That's not possible since drawing a path involves setting a single color to stroke or fill it. Definitely read up on NSBezierPath.

For your function, you would need to return a collection (NSArray, NSDictionary, ...) containing four individual objects. Each object would contain at least two ivars: NSColor; NSBezierPath.

___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com

_______________________________________________
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
References: 
 >Bezier Paths. (From: "Brian O'Brien" <email@hidden>)

  • Prev by Date: Re: [OT] A bit confused on pointers...
  • Next by Date: Re: Bezier Paths.
  • Previous by thread: Bezier Paths.
  • Next by thread: Re: Bezier Paths.
  • Index(es):
    • Date
    • Thread