🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #5796

How to pick colors on custom screens?

#5796
From: Dan Zerkle
Date: Fri, 12 Oct 1990 20:13
28 lines
1853 bytes
When I open a custom screen, I seem to inherit the default WB colors.
I seem to have figured out how to pick the register from which I draw
any particular image, but I don't know how to pick what colors go into
those registers.

1. #registers == 2^#bitplanes, right?  How do I set these registers so
   that the colors will be there immediately upon opening the screen?

2. What about if I want to change the colors on the fly?  What's an
   established way to let the user to it via a requestor?

3. What do the different values in the registers mean?  I assume that
   |Palette| = 4096 <=> register size = 12 bits.  This would in turn
   imply 4 bits per color.  How are these split up to chose the exact
   colors.

4. This information should be more easily available.  I looked in the
   Libraries & Devices and couldn't find it in screens, colors,
   windows (I'm trying to stick with Intuition).  Where should I be
   looking?

Details:  Using A3000 & WB2.0, but want compatible w/ 1.3.  Aztec C.
I would love examples of what values make what colors, and example
code would make my day.  Also, references to your sources of
information would also be helpful, so I can find it myself next time.

             Dan Zerkle  zerkle@iris.ucdavis.edu  (916) 754-0240
           Amiga...  Because life is too short for boring computers.
Technical Details
Message-ID: <7819@ucdavis.ucdavis.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!sdd.hp.com!zaphod.mps.ohio-state.edu!swrinde!ucsd!ucbvax!ucdavis!iris!zerkle

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!sdd.hp.com!zaphod.mps.ohio-state.edu!swrinde!ucsd!ucbvax!ucdavis!iris!zerkle
From: zerkle@iris.ucdavis.edu (Dan Zerkle)
Newsgroups: comp.sys.amiga.tech
Subject: How to pick colors on custom screens?
Message-ID: <7819@ucdavis.ucdavis.edu>
Date: 12 Oct 90 20:13:13 GMT
Sender: usenet@ucdavis.ucdavis.edu
Reply-To: zerkle@iris.ucdavis.edu (Dan Zerkle)
Organization: U.C. Davis - Department of Electrical Engineering and Computer Science
Lines: 28