• 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
Interpolating NSBezierPath parameters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Interpolating NSBezierPath parameters


  • Subject: Interpolating NSBezierPath parameters
  • From: Mark Flider <email@hidden>
  • Date: Tue, 08 Apr 2003 22:43:38 -0500

Hi all. I'm writing a program that takes discrete samples of point positions with line thickness and draws them onscreen. Since I would like this to be resolution-independent, I'm using Bezier curves to do so. However, it appears that I can't change a parameter along a curve. For example, I'd like to do something like:

drawPath = [NSBezierPath bezierPath];
[drawPath setLineWidth:width1];
[drawPath moveToPoint:aPoint1];
[drawPath setLineWidth:width2];
[drawPath moveToPoint:aPoint2];
[drawPath stroke];

Where the line width smoothly interpolates between width1 and width2. Similarly with color, etc. Is there a way to do this that I'm not finding in the documentation?

Thanks!

-- Mark Flider
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Interpolating NSBezierPath parameters
      • From: Shaun Wexler <email@hidden>
  • Prev by Date: Re: programming the dock icon
  • Next by Date: NSProgressIndicator won't disappear!
  • Previous by thread: NSTextField Rounded - Set background colour (iTunes style) ?
  • Next by thread: Re: Interpolating NSBezierPath parameters
  • Index(es):
    • Date
    • Thread