🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #2466

Standard Way to Specify Colors?

#2466
From: Eric Bergman-Terrell
Date: Tue, 07 May 1991 01:13
26 lines
1968 bytes
I am writing a graphical application - hence I am wondering how I should
let the user specify colors...  The program is an astronomy simulation/
graphing/simulation program.

I suppose I can set up one dialog box for specifying the appearance of
16 colors (i.e. by specifying their RGB values).  Then another dialog
box would associate the colors with various objects (i.e. sun is color 1,
stars are color 15, etc).

However, is there a built-in way to do this (I'm dreading writing the code -
which I expect won't be too bad).  For example, the "colors" option of the
control panel lets the user specify some colors, but I cannot find any
routines to access those colors (I have Petzold, Guide to Programming, &
Programmer's Reference).  Let me know if you know of some routines that
can get the RGB values of those colors...

Another option that I'm entertaining is to give the users 16 colors that
can't be changed.  Is this feasible?  I'm wondering if RGB(x, y, z) might
be attractive on a VGA card, but unattractive or even invisible on a different
(color) graphics card...

Anyway, I'm looking forward to reading your suggestions!


Terrell
Technical Details
Message-ID: <1991May7.011322.12743@mnemosyne.cs.du.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!mnemosyne.cs.du.edu!isis.cs.du.edu!ebergman

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!mnemosyne.cs.du.edu!isis.cs.du.edu!ebergman
From: ebergman@isis.cs.du.edu (Eric Bergman-Terrell)
Newsgroups: comp.windows.ms.programmer
Subject: Standard Way to Specify Colors?
Message-ID: <1991May7.011322.12743@mnemosyne.cs.du.edu>
Date: 7 May 91 01:13:22 GMT
Sender: usenet@mnemosyne.cs.du.edu (netnews admin account)
Reply-To: ebergman@isis.cs.du.edu (Eric Bergman-Terrell)
Organization: Nyx, Public Access Unix (sponsored by U. of Denver Math/CS dept.)
Lines: 26
Disclaimer1: Nyx is a public access Unix system run by the University of Denver
Disclaimer2: for the Denver community.  The University has neither control over
Disclaimer3: nor responsibility for the opinions of users.