Is that lua script at a point where it'd be helpful to test it on a bunch of dryos cameras or do you plan to do more on it?
The script will show the colors that can be displayed by a script on any CHDK camera (dryos or vxworks) in shooting and playback modes. If the colors look like the screen shots I posted then all is good. If not, then GUI stuff via scripts could look goofy or illegible on that camera.
If it's there what else to record while testing it? On some cameras (I105 comes to mind) I noticed that CHDK menus use an orange or yellow in combination with another bright color of all things (unpleasant to read) do you think that will become obvious from the palette not working there or is that just an imperfect choice by someone?
You can see all the available colors in any Canon mode using the
Draw Palette option in the
Color Settings menu. Scrolling around that screen gives you the 8 bit hex value for each cell and that value can be used to set the #defines for the camera's palette defined in core/gui_draw.h For any given port, the colors were picked by the person doing the port, who may have never seen another CHDK port for reference, or who may just have had a like for hideous clashing color combinations.
The problem is that not all colors are available in some cameras AND the color mappings change between modes ( i.e. shooting vs playback). Depending on the skills and knowledge of the person doing the port, they might have been able to assign palette values that are the same in both modes but I have seen ports where the menu colors (for example) change between shooting and playback modes.
All that changes if the port supports custom palette colors (which incidentally can also be seen in the
Draw Palette screen).
Should there also be shots of the ALT-Menu and CHDK overlays in shooting mode to illustrate what it all looks like for a given platform?
Colored icons as well. The hard part is that there are 17 different CHDK palettes and between 23 and 56 different color definitions in a palette. All of which have been added piece-wise over the last 8 years or so. Not sure where to even start trying to harmonize all that.