Calendar Event Gradient Offset Color |
Post Reply |
Author | |
jpcoffeyXXX
Groupie Joined: 16 August 2005 Location: United States Status: Offline Points: 31 |
Post Options
Thanks(0)
Posted: 29 July 2009 at 9:55am |
When creating an event, I use a markuplabel control to show what the event will look like on the calendar. Does anyone know of a formula to calculate the lighter shade of a given color? As it stands now, I will have to create a table for each corresponding color in my label list. If any color changes, I will have to update the table as well. Given any color, I would rather just calculate an offset of a few shades and use that as the lighter color in the gradient.
Does anyone know how to calculate the lighter shade for a calendar event? Given that it doesn't have to be exact, does anyone know of a forumla to calculate a lighter shade of any color? Thanks for your feedback. Sincerely, John Coffey
|
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
You can check one of gradient fill algorithm here - http://www.codeproject.com/KB/miscctrl/gradientprogressctrl.aspx
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |