Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: iCal Calendar Colors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iCal Calendar Colors



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...
 _______________________________________________
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

References: 
 >Re: iCal Calendar Colors (From: Paul Berkowitz <email@hidden>)
 >Re: iCal Calendar Colors (From: Martin Orpen <email@hidden>)
 >Re: iCal Calendar Colors (From: Todd Geist <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.