home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / amiga / programm / 11706 < prev    next >
Encoding:
Text File  |  1992-07-27  |  1.0 KB  |  31 lines

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