summaryrefslogtreecommitdiff
path: root/img
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2022-08-06 23:00:49 +0100
committerubq323 <ubq323@ubq323.website>2022-08-06 23:00:49 +0100
commit0b2f8a79e5a2c0e6ad10a1cb3c9172bb7231a878 (patch)
tree80934c1a073f85179e3e1f9583c46e65666f4a1d /img
parentb57241af3462b89641365a154deccefa705640bc (diff)
img
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)}