delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/08/04:27:02

From: "Hargreaves, Shawn" <shawnh AT probe DOT co DOT uk>
To: "'djgpp AT delorie DOT com'" <djgpp AT delorie DOT com>
Subject: Re: mistake in COLOR enum in conio.h
Date: Fri, 08 Aug 97 09:20:00 PDT
Message-ID: <33EB48A7@relay.probe.co.uk>
Encoding: 27 TEXT

Vic wrote:
> No. not that. And not the following bull either.How come nobody sees
> that? It's SO f***ing obvious!
> LIGHTGRAY is in the DARK colors and DARKGRAY is in the LIGHT ones!

Well, that can hardly be considered a mistake in the header, since
those are the colors set by the VGA BIOS. It might be silly, but it's
not something that can be changed just by altering some definitions!

But in fact it does make perfect sense. Look at this table:

    (dark)         (light)
    BLACK      ->  DARKGRAY
    BLUE       ->  LIGHTBLUE
    GREEN      ->  LIGHTGREEN
    CYAN       ->  LIGHTCYAN
    RED        ->  LIGHTRED
    MAGENTA    ->  LIGHTMAGENTA
    BROWN      ->  YELLOW
    LIGHTGRAY  ->  WHITE

Dark gray can be seen as a lighter version of black, and white as a   
lighter version of light
gray. Make sense?

 Shawn Hargreaves.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019