Kulvinder,

I don't work for Google, but the list that was posted (and which seems
to work) is: "#0D7813", "#1B887A", "#29527A", "#2952A3", "#28754E",
"#4A716C", "#4E5D6C", "#5229A3", "#528800", "#5A6986", "#6E6E41",
"#705770", "#7A367A", "#865A5A", "#88880E", "#8D6F47", "#A32929",
"#AB8B00", "#B1365F", "#B1440E", "#BE6D00".

Finding the closest match for a given color is relatively
straightforward: just calculate the distance in RGB colorspace
(sqrt((r2-r1)^2 + (g2-g1)^2 + (b2-b1)^2)) between each of the colors
above and the color you're trying to match, then choose the color with
the smallest distance. Maybe more work than it could be, but it's good
to stretch those CS101 muscles every now and then, right? :-)

Regards,
Charlie

On Aug 16, 12:11 am, Kulvinder Singh <[EMAIL PROTECTED]> wrote:
> Can anybody from Google reply on this ?
>
> I think untill and unless we have a list of colors available and since Google 
> APi doesnt seem to accept "any" color, the Calendar Add feature is not useful 
> at all.
>
> Thanks----- Original Message ----
> From: Dave <[EMAIL PROTECTED]>
> To: Google Calendar Data API <google-calendar-help-dataapi@googlegroups.com>
> Sent: Thursday, August 16, 2007 7:47:49 AM
> Subject: Re: How to find the colors available for Coloring a Google Calendar ?
>
> I guess this error means I have to pick from that list, and only that
> list?  Seems a little limiting...
>
> ------
>
> HTTP/1.1 400 Bad Request
> Content-Type: text/plain; charset=UTF-8
> Transfer-Encoding: chunked
> Cache-control: private
> Date: Thu, 16 Aug 2007 02:14:26 GMT
> Server: GFE/1.3
>
> Invalid color: #B027AE
>
>       
> ___________________________________________________________________________ 
> _________
> Shape Yahoo! in your own image.  Join our Network Research Panel today!  
> http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7


--~--~---------~--~----~------------~-------~--~----~
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 
google-calendar-help-dataapi@googlegroups.com
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