Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Determining RGB Brightness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Determining RGB Brightness



Is there a way to get the "brightness" of an RGB color, that is a percent of white in the color? Basically I need to know if a color contains so much white (brightness) that drawing white text over it will be not readable and the program can switch to black automatically. Is it possible to make this kind of guess based on color values? Thanks for any ideas.

Regards,
Josef

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.