Helle everyone,
well, after a break of some years I'm affected with keen a little bit.... (to be honest, my it was my girlfriends fault ;) ).
Maybe it's somewhere in here, but I would like to ask for the color palette to edit the graphics. Which RGB-values do the colors have?
Thanks in advance,
Matze
Color palette?
Keen itself uses a 0-63 value for the colours which are as follows:
00 00 00 #black
00 00 42 #blue
00 42 00 #green
00 42 42 #cyan
42 00 00 #red
42 00 42 #magenta
42 21 00 #brown
42 42 42 #bright gray
21 21 21 #gray
21 21 63 #bright blue
21 63 21 #bright green
21 63 63 #bright cyan
63 21 21 #bright red
63 21 63 #pink
63 63 21 #yellow
63 63 63 #white
Just take these numbers times 4 to get an rgb value:
e.g.: White would be 252 252 252, bright green 84 252 84 and so on.
00 00 00 #black
00 00 42 #blue
00 42 00 #green
00 42 42 #cyan
42 00 00 #red
42 00 42 #magenta
42 21 00 #brown
42 42 42 #bright gray
21 21 21 #gray
21 21 63 #bright blue
21 63 21 #bright green
21 63 63 #bright cyan
63 21 21 #bright red
63 21 63 #pink
63 63 21 #yellow
63 63 63 #white
Just take these numbers times 4 to get an rgb value:
e.g.: White would be 252 252 252, bright green 84 252 84 and so on.
The palette patches are under 'P' in the patch index. Here are the three you could need:
Code: Select all
#Change the default colors, Keen 1.31:
#This is the color palette: 16 entries of r, g, b (each 0-63)
%patch $13054
00 00 00 #black
00 00 42 #blue
00 42 00 #green
00 42 42 #cyan
42 00 00 #red
42 00 42 #magenta
42 21 00 #brown
42 42 42 #bright gray
21 21 21 #gray
21 21 63 #bright blue
21 63 21 #bright green
21 63 63 #bright cyan
63 21 21 #bright red
63 21 63 #pink
63 63 21 #yellow
63 63 63 #white
#Set the palette when we go into graphics mode
%patch $6E46 $E8 $D3 $D5 $90 $90
#Code to set graphics mode and set the palette
%patch $441C $B8 $0D $00 $CD
$10 $B8 $12 $10 $B9 $08 $00 $BB
$00 $00 $8C $DA $8E $C2 $BA $04
$00 $CD $10 $BB $18 $00 $BA $1C
$00 $CD $10 $C3
#Include this part if the "Change background tiles" patch is not used
#It gives us 36 spare bytes for the palette-setting code
%patch $4409 $B8 $14 $01 $26 $81 $3F $31
$01 $73 $03 $B8 $8F $00 $26 $89
$07 $E9 $5C $01
Code: Select all
#Change the palette colors, Keen 2.31:
#First change the color shades to what you want
#16 entries of r, g, b (each 0-63)
%patch $17784
00 00 00 # black
00 00 42 # blue
00 42 00 # green
00 42 42 # cyan
42 00 00 # red
42 00 42 # magenta
42 21 00 # brown
42 42 42 # bright gray
21 21 21 # gray
21 21 63 # bright blue
21 63 21 # bright green
21 63 63 # bright cyan
63 21 21 # bright red
63 21 63 # pink
63 63 21 # yellow
63 63 63 # white
%patch $3045 $E8 $35 $E5 $90 $90 #Set palette
%patch $157C $C3 #Clear some space (Joystick config code, 583 bytes)
%patch $157D $B8 $0D $00 $CD #Set the graphics mode
$10 $B8 $12 $10 $B9 $08 $00 $BB
$00 $00 $8C $DA $8E $C2 $BA $04
$00 $CD $10 $BB $18 $00 $BA $1C
$00 $CD $10 $C3
Code: Select all
#Change the palette, Keen 3.31
This is the color palette: 16 entries of r, g, b (each 0-63)
%patch $19824
00 00 00 # black
00 00 42 # blue
00 42 00 # green
00 42 42 # cyan
42 00 00 # red
42 00 42 # magenta
42 21 00 # brown
42 42 42 # bright gray
21 21 21 # gray
21 21 63 # bright blue
21 63 21 # bright green
21 63 63 # bright cyan
63 21 21 # bright red
63 21 63 # pink
63 63 21 # yellow
63 63 63 # white
# Set the palette when we go into graphics mode
%patch $2FE0 $E8 $58 $E5 $90 $90
#Cancel 'joysick config' code this gives us 583 bytes spare
%patch $153A $C3
# Code to set graphics mode and set the palette
%patch $153B $B8 $0D $00 $CD
$10 $B8 $12 $10 $B9 $08 $00 $BB
$00 $00 $8C $DA $8E $C2 $BA $04
$00 $CD $10 $BB $18 $00 $BA $1C
$00 $CD $10 $C3