• 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: kai <email@hidden>
  • Date: Tue, 24 May 2005 20:44:39 +0100


On Tuesday, May 24, 2005, at 08:15 pm, Todd Geist 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

The 'div' function should result in an integer:

58853 / (2 ^ 8) --> 229.89453125

58853 div (2 ^ 8) --> 229

---
kai

_______________________________________________
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: Todd Geist <email@hidden>)

  • Prev by Date: Re: Folder actions steal UI foces
  • Next by Date: Activate a feature via shortcut key event (as opposed to direct scripting)
  • Previous by thread: Re: iCal Calendar Colors
  • Next by thread: Re: iCal Calendar Colors
  • Index(es):
    • Date
    • Thread