Jump to content

P!n2Dmd Available Palettes


gtxjoe

Recommended Posts

  • Content Provider

I was looking into adding a few more standard palettes to the PIN2DMD firmware like Purple, Orange, and Amber.  I have included the palette color arrays below.  Could these be added to the firmware source so we have additional color options for Stern 16 color tables?  

 

Also when I was creating these new palettes, i.e ranging from 0x00 to 0xFF increasing in equal steps of 17, in this case, 0, 17,34,51...255. I noticed that the default palettes are not equally spaced out, i.e 0, 31, 47, 63...255, so maybe those should be changed to be more accurate.  For example:

Palette redPalette = { 1,
		{
				0x00,0x00,0x00,
				0x1F,0x00,0x00,
				0x2F,0x00,0x00,
				0x3F,0x00,0x00,
				0x4F,0x00,0x00,
				0x5F,0x00,0x00,
				0x6F,0x00,0x00,
				0x7F,0x00,0x00,
				0x8F,0x00,0x00,
				0x9F,0x00,0x00,
				0xAF,0x00,0x00,
				0xBF,0x00,0x00,
				0xCF,0x00,0x00,
				0xDF,0x00,0x00,
				0xEF,0x00,0x00,
				0xFF,0x00,0x00
		},
		NULL };

should be 

Palette redPalette = { 1,
		{
				0x00,0x00,0x00,
				0x11,0x00,0x00,
				0x22,0x00,0x00,
				0x33,0x00,0x00,
				0x44,0x00,0x00,
				0x55,0x00,0x00,
				0x66,0x00,0x00,
				0x77,0x00,0x00,
				0x88,0x00,0x00,
				0x99,0x00,0x00,
				0xAA,0x00,0x00,
				0xBB,0x00,0x00,
				0xCC,0x00,0x00,
				0xDD,0x00,0x00,
				0xEE,0x00,0x00,
				0xFF,0x00,0x00
		},
		NULL };



HERE IS THE ADDITIONAL Purple, Orange and Amber palettes
Palette purplePalette = { 8,
		{
				0x00,0x00,0x00,
				0x08,0x00,0x08,
				0x11,0x00,0x11,
				0x19,0x00,0x19,
				0x22,0x00,0x22,
				0x2A,0x00,0x2A,
				0x33,0x00,0x33,
				0x3B,0x00,0x3B,
				0x44,0x00,0x44,
				0x4C,0x00,0x4C,
				0x55,0x00,0x55,
				0x5D,0x00,0x5D,
				0x66,0x00,0x66,
				0x6E,0x00,0x6E,
				0x77,0x00,0x77,
				0x80,0x00,0x80
		},
		NULL };

Palette orangePalette = { 9,
		{
				0x00,0x00,0x00,
				0x11,0x09,0x00,
				0x22,0x12,0x00,
				0x33,0x1C,0x00,
				0x44,0x25,0x00,
				0x55,0x2E,0x00,
				0x66,0x38,0x00,
				0x77,0x3B,0x00,
				0x88,0x4A,0x00,
				0x99,0x54,0x00,
				0xAA,0x5D,0x00,
				0xBB,0x66,0x00,
				0xCC,0x70,0x00,
				0xDD,0x79,0x00,
				0xEE,0x82,0x00,
				0xFF,0x8C,0x00
		},
		NULL };
		
Palette amberPalette = { 10,
		{
				0x00,0x00,0x00,
				0x10,0x04,0x00,
				0x21,0x08,0x00,
				0x32,0xD,0x00,
				0x43,0x11,0x00,
				0x54,0x15,0x00,
				0x65,0x1A,0x00,
				0x76,0x1E,0x00,
				0x87,0x22,0x00,
				0x98,0x27,0x00,
				0xA9,0x2B,0x00,
				0xBA,0x2F,0x00,
				0xCB,0x34,0x00,
				0xDC,0x38,0x00,
				0xED,0x3C,0x00,
				0xFE,0x41,0x00
		},
		NULL };


Link to comment
Share on other sites

  • Content Provider

Thanks for your input.

The palettes in the firmware are just an example and should be replaced by custom palettes like yours uploaded

with the pin2dmd tool or stored on the sd card using the editor.

Your are right with the current palettes. I changed the values in the source to equal steps.

Purple is already in the source named pink. Changed the name there also.

I had a look at the new palettes I think they need some tweaking especially in the dark colors.

Maybe you can find some better values there and we replace e.g. palette 5 and 6

with more common ones like orange/amber.

Link to comment
Share on other sites

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...