Grid Colors - General Help and Assistance on using CHDK stable releases - CHDK Forum

Grid Colors

  • 3 Replies
  • 2360 Views
*

Offline Mac

  • *
  • 40
Grid Colors
« on: 26 / October / 2009, 12:04:22 »
Advertisements
Hi All!
Have written a simple LUA script for my PC that displays CHDK grids.
One problem I have is  how to convert 0X## colors into RGB(A) settings.
Is ther a listing for these color codes somewhere?
Help appreciated.

Re: Grid Colors
« Reply #1 on: 26 / October / 2009, 12:59:39 »

*

Offline reyalp

  • ******
  • 14082
Re: Grid Colors
« Reply #2 on: 26 / October / 2009, 16:48:46 »
Best way is probably to look in the pallet viewer in CHDK.

AFAIK we don't have a listing of the actual RGB (or maybe YUV) values of the bitmap pallet, and they are actually different on different cameras. This is actually a bit of a problem.

There are a bunch of palette related eventprocs in the dump, it probably wouldn't be too hard to figure this out.
Don't forget what the H stands for.

*

Offline Mac

  • *
  • 40
Re: Grid Colors
« Reply #3 on: 26 / October / 2009, 17:12:45 »
Thanks all.
Gives me a starting point.
Best,
Guy


 

Related Topics