From e151e4b6c69d7dd7d0925d16e64c8de0acf95614 Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Fri, 22 Sep 2023 23:56:00 -0700 Subject: [PATCH] more palettes! --- bitplane-thingie.p8 | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/bitplane-thingie.p8 b/bitplane-thingie.p8 index 4e7d277..b72a662 100644 --- a/bitplane-thingie.p8 +++ b/bitplane-thingie.p8 @@ -31,8 +31,8 @@ function _init() -- reset color plane_mask = 0xff - -- experimental additive palette 1 - pal({[0]=0,136,3,4,1,141,13,5,6,8,139,10,140,14,12,7}, 1) + -- see tab 5 for palettes + pal(palettes.additive,1) end function _update60() @@ -196,6 +196,15 @@ end -- palette selection ui -- ...from a preset list -- ...freely +-->8 +-- palettes + +palettes = { + classic = {[0] = 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}, + alt = {[0] = 128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143}, + additive = {[0]=0,136,3,4,1,141,13,5,6,8,139,10,140,14,12,7}, + subtractive = {[0]=7,12,14,1,10,11,136,5,6,140,130,129,132,131,2,0}, +} __gfx__ 00000000500000005000000050000000500000005000000050000000500000005000000000000000000000000000000000000000000000000000000000000000 00000000550000005500000055000000550000005500000055000000550000005500000000000000000000000000000000000000000000000000000000000000