Update JoeyLib Palette Functions
parent
9fd0cc40b2
commit
b7972cc3d2
1 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
|||
*Palette manipulation needs a lot of work. This will be enhanced in the future.*
|
||||
|
||||
#### jlPaletteDefault
|
||||
```c
|
||||
void jlPaletteDefault(void);
|
||||
|
@ -8,4 +10,10 @@ Resets the current palette to the default EGA palette.
|
|||
```c
|
||||
void jlPaletteSet(byte index, byte r, byte g, byte b);
|
||||
```
|
||||
Sets the color of palette position `index` to the specified RGB value. RGB values are specified as 4 bit (0-15) values. Valid `index` values are from 0-15.
|
||||
Sets the color of palette position `index` to the specified RGB value. RGB values are specified as 4 bit (0-15) values. Valid `index` values are from 0-15.
|
||||
|
||||
#### jlPaletteSetFromSta
|
||||
```c
|
||||
void jlPaletteSetFromSta(jlStaT *sta);
|
||||
```
|
||||
Sets the display palette to the palette provided by the static image.
|
||||
|
|
Loading…
Add table
Reference in a new issue