From efa5783683f4cb67ffa80df4eda4f5615ddc51aa Mon Sep 17 00:00:00 2001 From: Philipp Date: Sat, 19 Oct 2024 23:36:37 +0200 Subject: [PATCH] viewers, show palette --- viewers/viewer.js | 4 ++++ viewers/viewer.lua | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/viewers/viewer.js b/viewers/viewer.js index 2cdf33e..2a67a4a 100644 --- a/viewers/viewer.js +++ b/viewers/viewer.js @@ -38,6 +38,10 @@ function draw() { print("Up/Down\n switch\n color\n mode",4,62,10,false,1,true) print("Left/Right\n switch\n pages",4,92,10,false,1,true) print("TAB\n display\n system font",4,116,10,false,1,true) + for (var c = 0;c <= 15;c++) { + rect(208,(c*8)+4,8,8,c) + print(c,218,(c*8)+6,15,false,1,true) + } } // call the viewer diff --git a/viewers/viewer.lua b/viewers/viewer.lua index 5ffb62f..3e271ec 100644 --- a/viewers/viewer.lua +++ b/viewers/viewer.lua @@ -38,6 +38,10 @@ function draw() print("Up/Down\n switch\n color\n mode",4,62,10,false,1,true) print("Left/Right\n switch\n pages",4,92,10,false,1,true) print("TAB\n display\n system font",4,116,10,false,1,true) + for c = 0,15,1 do + rect(208,(c*8)+4,8,8,c) + print(c,218,(c*8)+6,15,false,1,true) + end end -- call the viewer