Re: iCal Calendar Colors
Re: iCal Calendar Colors
- Subject: Re: iCal Calendar Colors
- From: Adam Wuellner <email@hidden>
- Date: Tue, 24 May 2005 14:30:41 -0500
On 5/24/05, Adam Wuellner <email@hidden> wrote:
> On 5/24/05, Todd Geist <email@hidden> wrote:
> >
> > On May 24, 2005, at 11:53 AM, Martin Orpen wrote:
> >
> > > 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.
> >
> >
> > actually I beg to differ. it equals 229.89453125
> >
> > Does that mean that iCal is not using 16 bit colors?
> >
> > Confused...
>
> Add one to the value you're converting first.
> (58853 + 1) div 256
> -->229
>
> counting starts with 0 and all that rot...
ack... integer division and all that rot...
disregard.
_______________________________________________
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