On Tue, Sep 12, 2000 at 03:35:35PM -0700, Bob Whiteman wrote:
> The PalmOS Programmer's Companion indicates that the named HTML colour gray
> (0x808080) is a member of the PalmOS palette. I checked on a device, and the
> emulator, and this colour is not present.

This is probably a misprint.  The hardware is only capable of 4 bit
deep color, so each R, G, or B can only be 0, 0x11, 0x22,
0x33... 0xff.  0x777777 is probably used for this.

> However, the Programmer's Companion writes that only the first 231 entries
> in the palette and the last entry are defined.
> 
> Summing the total number of colours up:
>  216 Web-safe colours
>   10 greys, giving us all posible values of grey.
> +  6 named HTML colours
> ----
>  232

IT isn't quite that consistent.  First you have the 6x6x6 color cube,
except the black isn't quite (I think it is 0x10 instead of 0).  You
do have 0x0 blacks, but I think the 255th entry is "transparent" black
which should be used if you want a transparent color.  There are four
colors not in the cube, and the other greys not in the cube.

Also note the palette is programmable to any 256 of the possible 4096
colors, but your forms will look funny if you don't adjust them.  So
the "Standard" pallete is as noted there, but in reality you can
assign the remainder or even the entire 256.

(PiNGer, part of ZBoxZ uses the palette specified in the image file if
you want to see an example)

(Is there going to be colored cases, so you can have a gestalt so the
Palm will know the case color and map it's form color to match like
the iBook and iMac?...).

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to