• 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: 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


  • Follow-Ups:
    • Re: iCal Calendar Colors
      • From: Adam Wuellner <email@hidden>
    • Re: iCal Calendar Colors
      • From: Todd Geist <email@hidden>
References: 
 >Re: iCal Calendar Colors (From: Paul Berkowitz <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