1. Win32Lib Colors

>From Win32LibGenInfo.html:

WIN32LIB NAMED COLORS:

    Black           = rgb( 0, 0, 0 ),
    Blue            = rgb( 0, 0, 127 ),
    Green           = rgb( 0, 127, 0 ),
    Cyan            = rgb( 0, 127, 127 ),
    Red             = rgb( 127, 0, 0 ),
    Magenta         = rgb( 127, 0, 127 ),
    Brown           = rgb( 127, 127, 0 ),
    White           = rgb( 127, 127, 127 ),
    Gray            = rgb( 127, 127, 127 ),
    BrightBlue      = rgb( 0, 0, 255 ),
    BrightGreen     = rgb( 0, 255, 0 ),
    BrightCyan      = rgb( 0, 255, 255 ),
    BrightRed       = rgb( 255, 0, 0 ),
    BrightMagenta   = rgb( 255, 0, 255 ),
    Yellow          = rgb( 255, 255, 0 ),
    BrightWhite     = rgb( 255, 255, 255 )

Question:

The value (127, 127, 127) is correctly defined in the list as Gray (From
Win32LibGenInfo.html:

WIN32LIB NAMED COLORS:

    Black           = rgb( 0, 0, 0 ),
    Blue            = rgb( 0, 0, 127 ),
    Green           = rgb( 0, 127, 0 ),
    Cyan            = rgb( 0, 127, 127 ),
    Red             = rgb( 127, 0, 0 ),
    Magenta         = rgb( 127, 0, 127 ),
    Brown           = rgb( 127, 127, 0 ),
    White           = rgb( 127, 127, 127 ),
    Gray            = rgb( 127, 127, 127 ),
    BrightBlue      = rgb( 0, 0, 255 ),
    BrightGreen     = rgb( 0, 255, 0 ),
    BrightCyan      = rgb( 0, 255, 255 ),
    BrightRed       = rgb( 255, 0, 0 ),
    BrightMagenta   = rgb( 255, 0, 255 ),
    Yellow          = rgb( 255, 255, 0 ),
    BrightWhite     = rgb( 255, 255, 255 )

Question:

The value (127, 127, 127) is correctly defined in the list as Gray (also).

You know that it possible to obtain the complete scale of gray colors 
assuring the same numerical value to the three RGB parameters (from 0 to 255)

The darkest Gray is obviously known as Black (0, 0, 0) and the lighter 
as White (255, 255, 255)
The medium Gray value (127, 127, 127) is "Gray", only.

Why two misleeding definitions, Gray and White, for (127, 127, 127)?
Why the definition Brigth White for (255, 255, 255), instead of White? 

If so, why not Dark Black for (0, 0, 0) and Black for (127,127,127)? 
The medium (127, 127, 127) combination could so obtain three 
definitions: Black, Gray and White, making everibody happy!.

Gianfranco

new topic     » topic index » view message » categorize

2. Re: Win32Lib Colors

Giangranco wrote:
> 
> 
> >From Win32LibGenInfo.html:
> 
> WIN32LIB NAMED COLORS:
> 
>     Black           = rgb( 0, 0, 0 ),
>     Blue            = rgb( 0, 0, 127 ),
>     Green           = rgb( 0, 127, 0 ),
>     Cyan            = rgb( 0, 127, 127 ),
>     Red             = rgb( 127, 0, 0 ),
>     Magenta         = rgb( 127, 0, 127 ),
>     Brown           = rgb( 127, 127, 0 ),
>     White           = rgb( 127, 127, 127 ),
>     Gray            = rgb( 127, 127, 127 ),
>     BrightBlue      = rgb( 0, 0, 255 ),
>     BrightGreen     = rgb( 0, 255, 0 ),
>     BrightCyan      = rgb( 0, 255, 255 ),
>     BrightRed       = rgb( 255, 0, 0 ),
>     BrightMagenta   = rgb( 255, 0, 255 ),
>     Yellow          = rgb( 255, 255, 0 ),
>     BrightWhite     = rgb( 255, 255, 255 )
> 

[snip]
 
> The darkest Gray is obviously known as Black (0, 0, 0) and the lighter 
> as White (255, 255, 255)
> The medium Gray value (127, 127, 127) is "Gray", only.
> 
> Why two misleeding definitions, Gray and White, for (127, 127, 127)?
> Why the definition Brigth White for (255, 255, 255), instead of White? 


Because Microsoft calls (127, 127, 127) 'White'. To me it looks gray so I 
added the alias 'Gray' to be the same as Microsoft's white. The color
(255,255,255) is called Bright White by Microsoft. 

> If so, why not Dark Black for (0, 0, 0) and Black for (127,127,127)? 
> The medium (127, 127, 127) combination could so obtain three 
> definitions: Black, Gray and White, making everibody happy!.

Because that would be too stupid even for me.

-- 
Derek Parnell
Melbourne, Australia
irc://irc.sorcery.net:9000/euphoria

new topic     » goto parent     » topic index » view message » categorize

3. Re: Win32Lib Colors

Giangranco wrote:


> 
> The value (127, 127, 127) is correctly defined in the list as Gray (also).
> 
> You know that it possible to obtain the complete scale of gray colors 
> assuring the same numerical value to the three RGB parameters (from 0 to 255)
> 
> The darkest Gray is obviously known as Black (0, 0, 0) and the lighter 
> as White (255, 255, 255)
> The medium Gray value (127, 127, 127) is "Gray", only.
> 
> Why two misleeding definitions, Gray and White, for (127, 127, 127)?
> Why the definition Brigth White for (255, 255, 255), instead of White? 
> 
> If so, why not Dark Black for (0, 0, 0) and Black for (127,127,127)? 
> The medium (127, 127, 127) combination could so obtain three 
> definitions: Black, Gray and White, making everibody happy!.
> 
> Gianfranco
> 

Ansel Adams the great Black and White photographer said "there are eight
distinct shades of grey".

Here they are:

1.) rgb(0,0,0)
2.) rgb(66,66,66)
3.) rgb(83,83,83)
4.) rgb(127,127,127)
5.) rgb(169,169,169)
6.) rgb(200,200,200)
7.) rgb(221,221,221)
8.) rgb(255,255,255)


don cole
SF

new topic     » goto parent     » topic index » view message » categorize

4. Re: Win32Lib Colors

On Sat, 05 Feb 2005 20:31:07 -0800, Derek Parnell
<guest at RapidEuphoria.com> wrote:

>Because Microsoft calls (127, 127, 127) 'White'. To me it looks gray so I 
>added the alias 'Gray' to be the same as Microsoft's white.
FYI, The copy of win32lib I have (0.60.4) defines:
White as {224,224,224},
LightGray as {192,192,192},
Gray as {128,128,128}, and
DarkGray as {64,64,64}).

Pete

new topic     » goto parent     » topic index » view message » categorize

5. Re: Win32Lib Colors

Pete Lomax wrote:
> 
> On Sat, 05 Feb 2005 20:31:07 -0800, Derek Parnell
> <guest at RapidEuphoria.com> wrote:
> 
> >Because Microsoft calls (127, 127, 127) 'White'. To me it looks gray so I 
> >added the alias 'Gray' to be the same as Microsoft's white.
> FYI, The copy of win32lib I have (0.60.4) defines:
> White as {224,224,224},
> LightGray as {192,192,192},
> Gray as {128,128,128}, and
> DarkGray as {64,64,64}).

Oh that's right. I had an attempt at rationalizing the names to the
actual color displayed. So I made a White look like a duller version
of Bright White and made it distinct from Gray.

I was thinking of adopting the stand HTML color names/definitions too.

-- 
Derek Parnell
Melbourne, Australia
irc://irc.sorcery.net:9000/euphoria

new topic     » goto parent     » topic index » view message » categorize

6. Re: Win32Lib Colors

Pete Lomax wrote:
> 
> On Sat, 05 Feb 2005 20:31:07 -0800, Derek Parnell
> <guest at RapidEuphoria.com> wrote:
> 
> >Because Microsoft calls (127, 127, 127) 'White'. To me it looks gray so I 
> >added the alias 'Gray' to be the same as Microsoft's white.
> FYI, The copy of win32lib I have (0.60.4) defines:
> White as {224,224,224},
> LightGray as {192,192,192},
> Gray as {128,128,128}, and
> DarkGray as {64,64,64}).
> 
> Pete
> 
For the next version of win32lib I submit

 White                   rgb(255,255,255) 
 ALighterShadeOfPale     rgb(221,221,221)
 Pale                    rgb(200,200,200)
 LightGrey               rgb(169,169,169)
 Grey                    rgb(128,128,128)
 DarkGrey                rgb(83,83,83)
 VeryDarkGrey            rgb(66,66,66)
 Black                   rgb(0,0,0)

Don COLE
SF

new topic     » goto parent     » topic index » view message » categorize

7. Re: Win32Lib Colors

Don Col Wrote:

>Ansel Adams the great Black and White photographer said "there are eight
>distinct shades of grey".

>Here they are:

>1.) rgb(0,0,0)
>2.) rgb(66,66,66)
>3.) rgb(83,83,83)
>4.) rgb(127,127,127)
>5.) rgb(169,169,169)
>6.) rgb(200,200,200)
>7.) rgb(221,221,221)
>8.) rgb(255,255,255)

I'm sure he was right!  Wrong is what Microsoft states:
"There are two shades of white:
>1.) rgb(127,127,127)
>2.) rgb(255,255,255)"

Regards
Gianfranco

new topic     » goto parent     » topic index » view message » categorize

8. Re: Win32Lib Colors

> ALighterShadeOfPale     rgb(221,221,221)

Is that a Procol Harum reference? My dad got me hooked on them. I
swear, I'm so much older than my age (21). smile

~Greg

new topic     » goto parent     » topic index » view message » categorize

9. Re: Win32Lib Colors

>> ALighterShadeOfPale     rgb(221,221,221)
LeadingNonBiologicalCompetitorObviouslyCleanButSomehowSlightlyGrubbyWhite
{238,238,238}

new topic     » goto parent     » topic index » view message » categorize

10. Re: Win32Lib Colors

Pete Lomax wrote:
> 
> >> ALighterShadeOfPale     rgb(221,221,221)
> LeadingNonBiologicalCompetitorObviouslyCleanButSomehowSlightlyGrubbyWhite
> {238,238,238}

ALighterShadeOfLeadingNonBiologicalCompetitorObviouslyCleanButSomehowSlightlyGrubbyWhite
{248,248,248}


CoJaBo
"If two trains leave Boston heading in opposite directions, one
going 80MPH the other going 90MPH, how long will it be until
ANYONE CARES!!!" -- Me
[1010] << Supposed to be a computer
QWERTY
Laptop
Athlon 64 3700+ 2.4Ghz, 2GB RAM, 100GB HDD,
NVIDIA GeForce4 440 Go 64M Video card,
1920x1200 Resolution LCD

new topic     » goto parent     » topic index » view message » categorize

11. Re: Win32Lib Colors

On Tue, 08 Feb 2005 14:32:48 -0800, CoJaBo <guest at rapideuphoria.com> wrote:
>>ALighterShadeOfLeadingNonBiologicalCompetitorObviouslyCleanButSomehowSlightlyGrubbyWhite
> {248,248,248}

SlightlyDarkerThanTheLighterShadeOfLeadingNonBiologicalCompetitorObviouslyCleanButSomehowSlightlyGrubbyWhite
{244,244,244}

-- 
MrTrick

new topic     » goto parent     » topic index » view message » categorize

12. Re: Win32Lib Colors

On Wed, 9 Feb 2005 10:21:03 +1100, Patrick Barnes <mrtrick at gmail.com>
wrote:

>
>On Tue, 08 Feb 2005 14:32:48 -0800, CoJaBo <guest at rapideuphoria.com> wrote:
>>>>ALighterShadeOfLeadingNonBiologicalCompetitorObviouslyCleanButSomehowSlightlyGrubbyWhite
>> {248,248,248}
>
>>SlightlyDarkerThanTheLighterShadeOfLeadingNonBiologicalCompetitorObviouslyCleanButSomehowSlightlyGrubbyWhite
>{244,244,244}
MidwayBetweenTheSlightlyDarkerThanTheLighterShadeOfLeadingNonBiologicalCompetitorObviouslyCleanButSomehowSlightlyGrubbyWhiteAndALighterShadeOfLeadingNonBiologicalCompetitorObviouslyCleanButSomehowSlightlyGrubbyWhite
{246,246,246},
and 
TheColourCompletelyIndistinguishableFromEitherMidwayBetweenTheSlightlyDarkerThanTheLighterShadeOfLeadingNonBiologicalCompetitorObviouslyCleanButSomehowSlightlyGrubbyWhiteAndALighterShadeOfLeadingNonBiologicalCompetitorObviouslyCleanButSomehowSlightlyGrubbyWhiteAndSlightlyDarkerThanTheLighterShadeOfLeadingNonBiologicalCompetitorObviouslyCleanButSomehowSlightlyGrubbyWhite
{245,245,245}

C:\Euphoria\test\test.exw:1
source line is too long
TheColourCompletelyIndistinguishableFromEitherMidwayBetweenTheSlightlyDarkerThan
TheLighterShadeOfLeadingNonBiologicalCompetitorObviouslyCleanButSomehowSlightlyG
rubbyWhiteAndALighterShadeOfLeadingNo


                                    ^
Press Enter...

new topic     » goto parent     » topic index » view message » categorize

13. Re: Win32Lib Colors

i DDoSed u!

CoJaBo wrote:
> 
> Pete Lomax wrote:
> > 
> > >> ALighterShadeOfPale     rgb(221,221,221)
> > LeadingNonBiologicalCompetitorObviouslyCleanButSomehowSlightlyGrubbyWhite
> > {238,238,238}
> 
>
> ALighterShadeOfLeadingNonBiologicalCompetitorObviouslyCleanButSomehowSlightlyGrubbyWhite
> {248,248,248}
> 
> 
> CoJaBo
> "If two trains leave Boston heading in opposite directions, one
> going 80MPH the other going 90MPH, how long will it be until
> ANYONE CARES!!!" -- Me
> [1010] << Supposed to be a computer
> QWERTY
> Laptop
> Athlon 64 3700+ 2.4Ghz, 2GB RAM, 100GB HDD,
> NVIDIA GeForce4 440 Go 64M Video card,
> 1920x1200 Resolution LCD
> 


~~Bl@ckf|r3~~
Suprised to see me?

new topic     » goto parent     » topic index » view message » categorize

14. Re: Win32Lib Colors

Rob, can we have support for longer source lines?

Heh... just kidding.
Why is there a source line limit, anyway? Would a buffer overflow or something?


On Tue, 08 Feb 2005 23:42:27 +0000, Pete Lomax
<petelomax at blueyonder.co.uk> wrote:
TheColourCompletelyIndistinguishableFromEitherMidwayBetweenTheSlightlyDarkerThanTheLighterShadeOfLeadingNonBiologicalCompetitorObviouslyCleanButSomehowSlightlyGrubbyWhiteAndALighterShadeOfLeadingNonBiologicalCompetitorObviouslyCleanButSomehowSlightlyGrubbyWhiteAndSlightlyDarkerThanTheLighterShadeOfLeadingNonBiologicalCompetitorObviouslyCleanButSomehowSlightlyGrubbyWhite
> {245,245,245}
> 
> C:\Euphoria\test\test.exw:1
> source line is too long
>
> TheColourCompletelyIndistinguishableFromEitherMidwayBetweenTheSlightlyDarkerThan
>
> TheLighterShadeOfLeadingNonBiologicalCompetitorObviouslyCleanButSomehowSlightlyG
> rubbyWhiteAndALighterShadeOfLeadingNo
> 
>                                     ^
> Press Enter...
> 

MrTrick

new topic     » goto parent     » topic index » view message » categorize

15. Re: Win32Lib Colors

Pete Lomax wrote:
> 
> On Wed, 9 Feb 2005 10:21:03 +1100, Patrick Barnes <mrtrick at gmail.com>
> wrote:
> 
> >
> >On Tue, 08 Feb 2005 14:32:48 -0800, CoJaBo <guest at rapideuphoria.com>
> >wrote:
>
> >>>>ALighterShadeOfLeadingNonBiologicalCompetitorObviouslyCleanButSomehowSlightlyGrubbyWhite
> >> {248,248,248}
> >
>
> >>SlightlyDarkerThanTheLighterShadeOfLeadingNonBiologicalCompetitorObviouslyCleanButSomehowSlightlyGrubbyWhite
> >{244,244,244}
>
> MidwayBetweenTheSlightlyDarkerThanTheLighterShadeOfLeadingNonBiologicalCompetitorObviouslyCleanButSomehowSlightlyGrubbyWhiteAndALighterShadeOfLeadingNonBiologicalCompetitorObviouslyCleanButSomehowSlightlyGrubbyWhite
> {246,246,246},
> and 
>
> TheColourCompletelyIndistinguishableFromEitherMidwayBetweenTheSlightlyDarkerThanTheLighterShadeOfLeadingNonBiologicalCompetitorObviouslyCleanButSomehowSlightlyGrubbyWhiteAndALighterShadeOfLeadingNonBiologicalCompetitorObviouslyCleanButSomehowSlightlyGrubbyWhiteAndSlightlyDarkerThanTheLighterShadeOfLeadingNonBiologicalCompetitorObviouslyCleanButSomehowSlightlyGrubbyWhite
> {245,245,245}
> 
> C:\Euphoria\test\test.exw:1
> source line is too long
>
> TheColourCompletelyIndistinguishableFromEitherMidwayBetweenTheSlightlyDarkerThan
>
> TheLighterShadeOfLeadingNonBiologicalCompetitorObviouslyCleanButSomehowSlightlyG
> rubbyWhiteAndALighterShadeOfLeadingNo
> 
> 
>                                     ^
> Press Enter...

Woa... that would have the first time a variable name has exceded the line
limit of Eu!

> 
> 


CoJaBo
"If two trains leave Boston heading in opposite directions, one
going 80MPH the other going 90MPH, how long will it be until
ANYONE CARES!!!" -- Me
[1010] << Supposed to be a computer
QWERTY
Laptop
Athlon 64 3700+ 2.4Ghz, 2GB RAM, 100GB HDD,
NVIDIA GeForce4 440 Go 64M Video card,
1920x1200 Resolution LCD

new topic     » goto parent     » topic index » view message » categorize

16. Re: Win32Lib Colors

Blackfire wrote:
You actually used your OWN account?

> 
> i DDoSed u!

Yea... I kinda noticed...
Losing my internet connection for several hours is
hard to miss.

> 
> CoJaBo wrote:
> > 
> > Pete Lomax wrote:
> > > 
> > > >> ALighterShadeOfPale     rgb(221,221,221)
> > > LeadingNonBiologicalCompetitorObviouslyCleanButSomehowSlightlyGrubbyWhite
> > > {238,238,238}
> > 
> >
> > ALighterShadeOfLeadingNonBiologicalCompetitorObviouslyCleanButSomehowSlightlyGrubbyWhite
> > {248,248,248}
> > 
> > 
> > CoJaBo
> > "If two trains leave Boston heading in opposite directions, one
> > going 80MPH the other going 90MPH, how long will it be until
> > ANYONE CARES!!!" -- Me
> > [1010] << Supposed to be a computer
> > QWERTY
> > Laptop
> > Athlon 64 3700+ 2.4Ghz, 2GB RAM, 100GB HDD,
> > NVIDIA GeForce4 440 Go 64M Video card,
> > 1920x1200 Resolution LCD
> > 
> 
> ~~Bl@ckf|r3~~
> Suprised to see me?
Nope, wondered when you'd show again...

> 


CoJaBo
"If two trains leave Boston heading in opposite directions, one
going 80MPH the other going 90MPH, how long will it be until
ANYONE CARES!!!" -- Me
[1010] << Supposed to be a computer
QWERTY
Laptop
Athlon 64 3700+ 2.4Ghz, 2GB RAM, 100GB HDD,
NVIDIA GeForce4 440 Go 64M Video card,
1920x1200 Resolution LCD

new topic     » goto parent     » topic index » view message » categorize

17. Re: Win32Lib Colors

Patrick Barnes wrote:
> Rob, can we have support for longer source lines?
> 
> Heh... just kidding.
> Why is there a source line limit, anyway? Would a buffer overflow or
> something?

In 2.5, the front end is written in Euphoria, so 
there is no longer a source line limit.

In 2.4 and earlier, the front end was written in C,
so it was very convenient to have a limit of some kind (200 chars).

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu