From 45d3f11f94a19b56e94146ff975d5bbaa2786467 Mon Sep 17 00:00:00 2001 From: Scott Duensing Date: Thu, 6 Sep 2018 01:07:37 +0000 Subject: [PATCH] scott created page: JoeyLib Palette Functions --- JoeyLib-Palette-Functions.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 JoeyLib-Palette-Functions.md diff --git a/JoeyLib-Palette-Functions.md b/JoeyLib-Palette-Functions.md new file mode 100644 index 0000000..79cb247 --- /dev/null +++ b/JoeyLib-Palette-Functions.md @@ -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. \ No newline at end of file