Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Stefan Wuebbe
  Where is Stefan Wuebbe?
 Hamburg
 Germany
 Stefan Wuebbe
 To: Dan Baker
  Where is Dan Baker?
 Effort of the Poconos
 Pennsylvania - United States
 Dan Baker
 Tags
Subject: RE: Does Windows Color number have a name?
Thread ID: 416102 Message ID: 416111 # Views: 59 # Ratings: 3
Version: Visual FoxPro 9 Category: Classes and Objects
Date: Sunday, December 21, 2014 9:58:32 PM         
   


> Foxite,
>
> When I searched Google, Foxite, and the VFP Hacker's Guide, I could find no
> consistent name for the number that results from an RGB calculation. And this
> seems kind of weird. LOL.
>
> When you pass the parameter RGB(255,255,255), the LPARAMETER number that's
> passed is 16,777,215.  And that is sometimes called the RGB number, but
> that's confusing because the RGB numbers are the digital Red, Green, and
> Blue numbers.
>
> Although I'll admit that nRGB is understood, the starting point for that number
> isn't always an RGB calculation.  It could be calculated from the Hexcolor or HSL
> or other source.
>
> Now I feel that number should have a distinct name, but it seems people — even
> Microsoft — have avoided giving it a name.
>
> So what should we call it?  If that mysterious number came from the Windows
> world, maybe we should call it the WinColor.  What's the answer, colleagues?
>
> Dan B.


I'd say "lnRgb" is OK, because it is only one number being the result of an "RGB calculation".
(Whereas to me the three R G B components would be three different variables, that could perhaps be named "lnRed", lnGreen", "lnBlue".)

On the other hand, "lnColor" would be OK with me too - the F1 Help on RGB() says "Returns a single color value from a set of red, green, and blue color components."



Regards
-Stefan

ENTIRE THREAD

Does Windows Color number have a name? Posted by Dan Baker @ 12/21/2014 5:38:50 PM
RE: Does Windows Color number have a name? Posted by Mike Gagnon @ 12/21/2014 6:45:16 PM
RE: Does Windows Color number have a name? Posted by Stefan Wuebbe @ 12/21/2014 9:58:32 PM
RE: Does Windows Color number have a name? Posted by Dan Baker @ 12/22/2014 3:00:37 PM