Interpolating NSBezierPath parameters
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.