• 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 an RGB color back into an 16-bit-per-channel color
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Converting an RGB color back into an 16-bit-per-channel color


  • Subject: Converting an RGB color back into an 16-bit-per-channel color
  • From: Jim Thorton <email@hidden>
  • Date: Sun, 14 Aug 2011 09:21:51 +0900

Dear AppleScripters,

Hola.  I know that I can use AppleScript to open the Color Picker window.  If the user picks a color, you will get a 16-bit-per-channel color like {52428, 54484, 45232}.  If you want to manually convert this color into an 8-bit-per-channel color for an RGB color, I guess you need to divide each component by 256.  Well, I would get RGB(204,212,176).  And that's what I get if I select RGB Sliders from the color sliders drop-down menu.  But you can never convert this RGB color back into what it was.  If you multiple each component by 256, you would get {52224,54272,45056}, which differs from the original color.

Is there any way to convert an RGB color back into the original 16-bit-per-channel color?

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 an RGB color back into an 16-bit-per-channel color
      • From: Chris Page <email@hidden>
    • Re: Converting an RGB color back into an 16-bit-per-channel color
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Re: To Extract the More Info Information from Get Info
  • Next by Date: Re: Converting an RGB color back into an 16-bit-per-channel color
  • Previous by thread: Re: SO.
  • Next by thread: Re: Converting an RGB color back into an 16-bit-per-channel color
  • Index(es):
    • Date
    • Thread