Re: Making an iTunes style bar
Re: Making an iTunes style bar
- Subject: Re: Making an iTunes style bar
- From: Chad Weider <email@hidden>
- Date: Wed, 5 Apr 2006 17:07:59 -0500
On Apr 3, 2006, at 3:47 AM, Conor Dearden wrote:
getting the gradient
The gradient you create as an image. Full vertical height but thin
on the
horizontal, your going to repeat it horizontally, maybe even just
one pixel
— but it's easier to work with more for visual purposes.
This here is Gamepedia's collection highlight pattern:
collectionHeighlightColor = [[NSColor colorWithPatternImage:[NSImage
imageNamed:@"collectionHighlight.png"]] retain];
With collectionHeighlightColor as the set color you can draw in your
gradient pattern.
Some shameless self-promotion I suppose, but if you want to
dynamically generate gradients (with CoreGraphics) you could use some
code I wrote:
http://blog.oofn.net/projects/misc#CTGradient
Chad Weider
email@hidden _______________________________________________
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