From f0bfe4dbc39ded84ef0d1912fa9e5f29b2b9a5b5 Mon Sep 17 00:00:00 2001 From: Michael Knigge Date: Thu, 20 Oct 2022 22:49:36 +0200 Subject: [PATCH] Added macro BLACK that switches to a color scheme with a black background. --- macros/black.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 macros/black.c diff --git a/macros/black.c b/macros/black.c new file mode 100644 index 0000000..a371670 --- /dev/null +++ b/macros/black.c @@ -0,0 +1,21 @@ +void black(void) +{ + SPFService("VPUT", "ZCOLOR.PALETTE.00", "0"); + SPFService("VPUT", "ZCOLOR.PALETTE.01", "8421504"); + SPFService("VPUT", "ZCOLOR.PALETTE.02", "12632256"); + SPFService("VPUT", "ZCOLOR.PALETTE.03", "16777215"); + SPFService("VPUT", "ZCOLOR.PALETTE.04", "32768"); + SPFService("VPUT", "ZCOLOR.PALETTE.05", "32896"); + SPFService("VPUT", "ZCOLOR.PALETTE.06", "65280"); + SPFService("VPUT", "ZCOLOR.PALETTE.07", "65535"); + SPFService("VPUT", "ZCOLOR.PALETTE.08", "8388608"); + SPFService("VPUT", "ZCOLOR.PALETTE.09", "16759662"); + SPFService("VPUT", "ZCOLOR.PALETTE.10", "16711680"); + SPFService("VPUT", "ZCOLOR.PALETTE.11", "16776960"); + SPFService("VPUT", "ZCOLOR.PALETTE.12", "128"); + SPFService("VPUT", "ZCOLOR.PALETTE.13", "8388736"); + SPFService("VPUT", "ZCOLOR.PALETTE.14", "255"); + SPFService("VPUT", "ZCOLOR.PALETTE.15", "16711935"); + + SPFService("CMD", "RECOLOR"); +}