Thanks Przemek. I'll fix GTWVT to use the same colors.
Brgds, Viktor On 2010 Feb 22, at 20:24, Przemysław Czerpak wrote: > On Sat, 20 Feb 2010, Szak�ts Viktor wrote: > > Hi, > >>>> --- (from old hbwin.ch) >>>> #define RGB_BLACK RGB( 0x00, 0x00, 0x00 ) >>>> #define RGB_BLUE RGB( 0x00, 0x00, 0x85 ) >>>> #define RGB_GREEN RGB( 0x00, 0x85, 0x00 ) >>>> #define RGB_CYAN RGB( 0x00, 0x85, 0x85 ) >>>> #define RGB_RED RGB( 0x85, 0x00, 0x00 ) >>>> #define RGB_MAGENTA RGB( 0x85, 0x00, 0x85 ) >>>> #define RGB_BROWN RGB( 0x85, 0x85, 0x00 ) >>>> #define RGB_WHITE RGB( 0xC6, 0xC6, 0xC6 ) >>>> --- >>> Once again, the above colours are in RGB colour model. They are defined for >>> display, not for printing. That is not full Clipper colour palette, only >>> non-BRIGHT part, and brown defined here is not brown on screen. >> It was not the goal to be full Clipper palette. One >> may of course create Clipper-alike colors by using >> different values, but I can't see any use of that in >> hbwin.ch, neither does it seem like this was intent >> of original developers using above values. > > If you are interesting then Clipper uses original VGA colors > with the following values: > > /* black "rgb:00/00/00" */ > /* blue "rgb:00/00/AA" */ > /* green "rgb:00/AA/00" */ > /* cyan "rgb:00/AA/AA" */ > /* red "rgb:AA/00/00" */ > /* magenta "rgb:AA/00/AA" */ > /* brown "rgb:AA/55/00" */ > /* light gray "rgb:AA/AA/AA" */ > /* gray "rgb:55/55/55" */ > /* light blue "rgb:55/55/FF" */ > /* light green "rgb:55/FF/55" */ > /* light cyan "rgb:55/FF/FF" */ > /* light red "rgb:FF/55/55" */ > /* light magenta "rgb:FF/55/FF" */ > /* yellow "rgb:FF/FF/55" */ > /* white "rgb:FF/FF/FF" */ > > (read from VGA registers by small ASM code I wrote many years ago) > I used this colors in GTXWC. > Anyhow the intensity of colors strongly depends on type of device > so the real printer results can be completely different. > > Probably I missed the context but I do not understand why Andrzej is > mixing RGB palette used in VGA addapters for screen colors and RGB color > definitions used in Harobur WIN API functions for printing. > > best regards, > Przemek > _______________________________________________ > Harbour mailing list (attachment size limit: 40KB) > Harbour@harbour-project.org > http://lists.harbour-project.org/mailman/listinfo/harbour _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour