Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.databases.paradox    |    To crash or not to crash, asks Borland    |    9,834 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 7,911 of 9,834    |
|    Liz McGuire to Jim Moseley    |
|    Re: Fonts & Colors    |
|    10 Nov 06 15:50:36    |
      From: liz@paradoxcommunity.com              That's an interesting question. I suppose you could theorize that       anything which is less than 3* 128 (384) is too dark for black.       Anything equal or greater is OK for black. That might need some       tweaking. If you have ProView, use the floating color selector to       experiment, but I expect it would hold, once you'd found the dividing       line...              Of course, colors are integers and it would probably be easier to       compare the color to an integer. 128,128,128 is 8421504. And the       integer is smaller as you get darker and larger as you get lighter, so       the same theory should hold...              FWIW,              Liz                     Jim Moseley wrote:       > Greetings       >       > Is there an easy way to determine whether a uiObject's color is too dark       > to use font.color=black, and instead replace it with font.color=white?       >       > If I check each rgb() value, what would the breaking point be? Or should       > I add then together (red+green+blue > x)? Or does someone have a better       > solution?       >       > Thanks,       > Jim Moseley              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca