Spritepal: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
removed layer bullshit, ASCII table, and added link to preview page
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
spritepal <number>
'''spritepal''' <number>


Changes the current [[actor]]'s palette reference number to <number>.
Changes the current [[actor]]'s palette reference number to <number>.


The following is a listing of all the legal values for the spritepal primitive. Palettes can effect 3 different 'layers' of a tile. The easiest way to understand these 3 different 'layers' is by using the stripper sprite. The 3 'layers' are: Background (her skin), Foreground (her clothes), and Minor Foreground (money, accessories, etc).
See [[pal]] for more information about palette swaps.


'''A color transformation table''':
See the [[Palette (environment)#Palette Swaps|palette listing]] for previews.
  1 = all  -> blue
  2 = all  -> red
  3 = normal(=0).
  4 = all  -> black
  5 =                        red  -> brown                                                 
  6 = all  -> green with inverted brightness (Night Vision green)
  7 = all  -> yellow
  8 = all  -> green
  9 = normal(=0)
10 = blue  -> dark red                                                                     
11 = blue  -> green(=22)                                                                   
12 = blue  -> gray(=18)                                                                     
13 = blue  -> dark gray      red  -> grey                                                 
14 = blue  -> dark green    red  -> green                                                 
15 = blue  -> brown                                                                         
16 = blue  -> dark blue                                                                     
17 = blue  -> green                          green -> blue  brown -> blue
18 = blue  -> gray(=12)                                                                     
19 = blue  -> gray                            green -> red    brown -> red
20 = blue  -> gray                            green -> blue  brown -> blue
21 = blue  -> red                                                                           
22 = blue  -> green(=11)                                                                   
23 = blue  -> yellow                                                                       
24 =                        red  -> gray                                    gray  -> red 
25 =                                          green -> red
 
Note that palette 9 is used for player default color. The palette used for Assault Trooper is palette 22.


[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Sprite manipulation]]
[[Category:Sprite manipulation]]

Latest revision as of 17:00, 26 September 2009

spritepal <number>

Changes the current actor's palette reference number to <number>.

See pal for more information about palette swaps.

See the palette listing for previews.