Hi Dave,

First of all, you will have to have a list of colors available in Google 
Calendar. For the time being, you can use that list as static but i think 
Google should expose that list as well through the API.

After that you will have to look for a color matching nearest to the ones 
available in the list through RGB conversion to HSB (Hue, Saturation and 
Brightness). I have already done this kind of stuff. 

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1972889&SiteID=1

Hope this helps.

Cheers


----- Original Message ----
From: Dave <[EMAIL PROTECTED]>
To: Google Calendar Data API <[email protected]>
Sent: Thursday, August 16, 2007 8:10:39 AM
Subject: Re: How to find the colors available for Coloring a Google Calendar ?


Does anybody have some color matching sample code that will take me
from an arbitrary RGB value to one of the colors in the table above?
I seem to recall something about converting to YIQ before matching
colors, but I'm pretty rusty.




       
____________________________________________________________________________________
Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz
 
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" group.
To post to this group, send email to 
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to