×
Namespaces

Variants
Actions
Revision as of 07:01, 27 July 2012 by hamishwillee (Talk | contribs)

Archived:How to get default palette table of mbm file in PySymbian

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: cyke64 (24 Mar 2007)
Last edited: hamishwillee (27 Jul 2012)

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)
45 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×