NewPalette
NewPalette Create a color palette from within an application
#include <Palettes.h> Palette Manager
PaletteHandle NewPalette( entries, srcColors, srcUsage, srcTolerance );
short entries ; number of entries that will be placed in the new
palette
CTabHandle srcColors ; handle to source color table
short srcUsage ; is pmCourteous, pmTolerant, pmAnimated, or
pmExplicit
short srcTolerance ; a value that sets the degree of color approximation
NewPalette obtains a new blank palette with a color table setup to accept new
entries.
entries is the number of entries to be placed in the new palette.
srcColors supplies RGB values until the table is full or until it runs out of
candidates for the palette's color table.
srcUsage is pmCourteous, pmTolerant, pmExplicit, or pmAnimated.
srcTolerance a value that sets the degree of color approximation
Returns: a PaletteHandle leading to the palette data.

Notes: Setting the srcColors value to NIL indicates that there is no source color table
and all the colors in the palette will be rendered as black, i.e., red, green and
blue are all given the absolute 0x0000 value.