Mutiple colors in one NSBezierPath?
Mutiple colors in one NSBezierPath?
- Subject: Mutiple colors in one NSBezierPath?
- From: "Michael P. Rogers" <email@hidden>
- Date: Mon, 11 Mar 2002 14:07:20 -0600
The documentation for NSBezierPath suggests that fill draws with the
current graphics context's color. But if I try and set the color
several times, filling after each, I get a solid color. For
instance, the code below draws everything in anotherColor
NSBezierPath * myBP = [[NSBezierPath alloc]init];
[myColor set];
[myBP appendSomething];
[myBP fill];
[anotherColor set];
[myBP appendSomethingElse];
[myBP fill];
I gather, based on an article by Mike Beam, that this is just the way
that NSBezierPath works. However, am I not changing the context when
I say set? Clarification would be appreciated.
Michael
--
Dr. Michael P. Rogers
Office: 203G Shilling Hall
Phone: 217-424-6327 (W) 309-828-8655 (H) 309-825-6454 (C)
E-Mail: email@hidden
Web site:
http://math.millikin.edu/
Astronomy Site:
http://twincityamateurastronomers.org
_______________________________________________
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.