• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iCal Calendar Colors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iCal Calendar Colors


  • Subject: Re: iCal Calendar Colors
  • From: Adam Wuellner <email@hidden>
  • Date: Tue, 24 May 2005 14:29:31 -0500

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

  • Follow-Ups:
    • Re: iCal Calendar Colors
      • From: Adam Wuellner <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>)

  • Prev by Date: Re: iCal Calendar Colors
  • Next by Date: Re: iCal Calendar Colors
  • Previous by thread: Re: iCal Calendar Colors
  • Next by thread: Re: iCal Calendar Colors
  • Index(es):
    • Date
    • Thread