summaryrefslogtreecommitdiff
path: root/img
diff options
context:
space:
mode:
Diffstat (limited to 'img')
-rw-r--r--img/better_disp.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/img/better_disp.lua b/img/better_disp.lua
index dd44b49..6f60c1b 100644
--- a/img/better_disp.lua
+++ b/img/better_disp.lua
@@ -27,9 +27,9 @@ end
local function all_palette_distances(R)
local out = {}
for a=0,15 do
- out[a] = {}
+ local ia=2^a
+ out[ia] = {}
for b = 0,15 do
- local ia=2^a
local ib=2^b
print(a,b,ia,ib)
local ca = {R.getPaletteColor(ia)}