Categories: S60 | Python | How To | Code Examples | Graphics
How to get default palette table of mbm file
From Forum Nokia Wiki
You can get all the 8-bit palette in a few lines :
ff00 = range(0xff, -1, -0x33) palette = [(r,g,b) for r in ff00 for g in ff00 for b in ff00] #0x336699 palette[0] = (0,0,0) palette += [(17*i,17*i,17*i) for i in (14,13, 11,10, 8,7, 5,4, 2,1)] # grey palette += [(0,0,0) for i in range(30)] # empty palette[-1] = (255,255,255)
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Wrong TRgb Colors... | dguldbrandsen | General Symbian C++ | 2 | 2003-06-15 01:07 |
| loading picture | joby_nk | General Symbian C++ | 16 | 2007-09-19 06:43 |
| problem in ListBox | aditighosal | General Symbian C++ | 8 | 2008-07-16 21:01 |
| Problem to load a bitmap (the problem continue) | marlon.luz | General Symbian C++ | 3 | 2007-01-24 03:58 |
| animated highlites ? | kev-59 | Themes/Carbide.ui | 7 | 2008-05-03 23:21 |
