home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!mnemosyne.cs.du.edu!nyx!lkind
- From: lkind@nyx.cs.du.edu (Lance Kind)
- Subject: Setting the color of a Sprite.
- Message-ID: <1992Jul28.044643.5060@mnemosyne.cs.du.edu>
- Sender: usenet@mnemosyne.cs.du.edu (netnews admin account)
- Organization: Nyx, Public Access Unix @ U. of Denver Math/CS dept.
- Date: Tue, 28 Jul 92 04:46:43 GMT
- Lines: 20
-
-
- Dear fellow programmers,
-
- I am writing a program using low level graphics primitives in
- C. I have a sprite set up in sprite register 3, and I tried to set
- its colors using SetRGB4. I am using color registers
- 21, 22, and 23. My Sprite just shows up as a few different shades
- of gray. I am using the right viewport to.
- ex.
- SetRGB4(&viewport, 21, 0x6, 0xe, 0x5);
-
- I do this for each of the three color registers. I have gotten
- this to work fine when I open an intuition window on W.B..
-
- Is there something else I must do when working with primitives?
-
- Thanks for any help,
-
- Lance Kind
-
-