A way to use multiple colours with one NSBezierPath?
A way to use multiple colours with one NSBezierPath?
- Subject: A way to use multiple colours with one NSBezierPath?
- From: Michael Robinson <email@hidden>
- Date: Sat, 4 Oct 2008 16:54:18 +1300
Hello again
I would like to draw one path, which is used as a border.
I naively assumed I could change the colour of the path as it is
constructed, but it seems this is not the case.
If I change the colour (using [[NSColor blackColor] set]; for
example), this changes the colour for the entire path.
Basically what I would like to know is:
Is it possible to use multiple colours in one line, as in the following:
Bottom + BR + BL corners = black
Right = Orange
Top + TR + TL corners = black
Left = Orange
Yes, I know this would be hideous, it is just an example.
I was attempting this by using [[NSColor aColor] set]; after each
path element is drawn, but it is causing the whole path to take the
value of the last set colour.
I would also like to say that I really appreciate the incredible
amount of quality suggestions and advice I have received from this
list, you're all wonderfully talented and kind.
Without your help I would have bashed my computer into little pieces
long ago.
Mike
No snowflake in an avalanche ever feels responsible.
-- Voltaire
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden