Re: iCal Calendar Colors
Re: iCal Calendar Colors
- Subject: Re: iCal Calendar Colors
- From: Martin Orpen <email@hidden>
- Date: Tue, 24 May 2005 19:53:48 +0100
On 24 May 2005, at 19:04, Paul Berkowitz wrote:
[sorry Paul, sent this to you personally first by mistake]
On 5/24/05 9:58 AM, "Todd Geist" <email@hidden> wrote:
get color of calendar 1
--> {58853, 5911, 5911}
according to your conversion that should equal {242, 76, 76}
But if you then use the color picker to examine that "red" color you
will see that it returns
{229, 23, 23}
which is the result you obtain when dividing by 257
No, you must be right. My converter was for Word and Excel; I just
thought
it might be worth trying. For some reason, I had misread your earlier
suggestion as "divide by 25", which I knew could not be right. 257
certainly
could be (very odd that it's 257 and not 256, mind you. What
happens if you
divide by 256 and round down?)
To get an 8 bit colour value (2^8) from a 16 bit one (2^16) you need
to divide it by 2^8:
58853 div (2 ^ 8)
--> 229
PS: You can't do this with Photoshop colour values because it uses
(2^15)+1 rather than real 16 bit values.
--
Martin Orpen
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden