Article View: comp.os.os2.programmer
Article #1511text colors for 8514/a
From: Henry Barta
Date: Fri, 14 Sep 1990 18:43
Date: Fri, 14 Sep 1990 18:43
18 lines
1504 bytes
1504 bytes
I am using direct calls to the IBM 8514/A to paint various graphics and text to the screen, generally with the desired results. However, I have been unable to create a desired foreground color: mustard yellow (The program is running full screen under OS/2.) I have defined the color as (255, 160, 0) (red, green, blue) which I believe should produce some sort of yellow. Then I use the HSCOL order to set the foreground to this color (using the corresponding index that was determined when I loaded the palette). The background is set to an index for light grey (200,200,200) using the HSBCOL order and mix for both background and foreground set to overpaint (2) using the HSMIX order. The text is then written using the HCHST order. And it comes out pink. I have tried the default yellow from the palette and adjacent colors in the custom palette with the expected results. As near as I can tell, blue is getting mixed in somehow. Any ideas on what I am doing wrong would be greatly appreciated.
Technical Details
Message-ID:
<1990Sep14.184300.24094@ddsw1.MCS.COM>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!sun-barr!olivea!orc!inews!iwarp.intel.com!gargoyle!ddsw1!hbShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!sun-barr!olivea!orc!inews!iwarp.intel.com!gargoyle!ddsw1!hb From: hb@ddsw1.MCS.COM (Henry Barta) Newsgroups: comp.os.os2.programmer Subject: text colors for 8514/a Keywords: foreground 8614/A Message-ID: <1990Sep14.184300.24094@ddsw1.MCS.COM> Date: 14 Sep 90 18:43:00 GMT Reply-To: hb@ddsw1.MCS.COM (Henry Barta) Distribution: usa Organization: ddsw1.MCS.COM Contributor, Wheeling, IL Lines: 18