scott created page: JoeyLib Palette Functions
parent
c24f713c14
commit
45d3f11f94
1 changed files with 11 additions and 0 deletions
11
JoeyLib-Palette-Functions.md
Normal file
11
JoeyLib-Palette-Functions.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
#### jlPaletteDefault
|
||||||
|
```c
|
||||||
|
void jlPaletteDefault(void);
|
||||||
|
```
|
||||||
|
Resets the current palette to the default EGA palette.
|
||||||
|
|
||||||
|
#### jlPaletteSet
|
||||||
|
```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.
|
Loading…
Add table
Reference in a new issue