• 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
Converting ColorPicker values into 24-bit color values
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Converting ColorPicker values into 24-bit color values


  • Subject: Converting ColorPicker values into 24-bit color values
  • From: Jim Thorton <email@hidden>
  • Date: Sun, 05 Jun 2011 12:24:24 +0900

Hello AppleScripters,

A while ago, I picked a simple conversion formula at one web site (http://www.macosxautomation.com/applescript/sbrt/sbrt-04.html) for converting the RGB color values returned by ColorPicker into 24-bit RGB color values.  It works fine except a very minor thing.  I just happened to choose one red-like color, which Color Picker returns the following.

{58418, 477, 4919}

According to the web site above, I would just divide each value by 256.  Since none of them is greater than 255, after rounding them out, I get the following.

RGB(228,2,19)

Well, if I go back to Color Picker, picking the same color and setting the color menu to RGB Sliders, I get the following.

RGB(227,2,19)

So which is correct?

Thank you for your advice.

Jim _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Converting ColorPicker values into 24-bit color values
      • From: "Mark J. Reed" <email@hidden>
    • Re: Converting ColorPicker values into 24-bit color values
      • From: Stan Cleveland <email@hidden>
  • Prev by Date: Re: For some strange reason
  • Next by Date: Re: Talking to apps running under different users' accounts on same machine?
  • Previous by thread: Re: Load Script
  • Next by thread: Re: Converting ColorPicker values into 24-bit color values
  • Index(es):
    • Date
    • Thread