alloc_color_planes/[8,9] and alloc_contig_color_planes/[8,9]
     alloc_color_planes(+NColors, -Pixels, +NReds, +NGreens, +NBlues,
                        -RMask, -GMask, -BMask)
     alloc_color_planes(+Colormapable, +NColors, -Pixels, +NReds, +NGreens, +NBlues,
                        -RMask, -GMask, -BMask)
     alloc_contig_color_planes(+NColors, -Pixels, +NReds, +NGreens, +NBlues,
                               -RMask, -GMask, -BMask)
     alloc_contig_color_planes(+Colormapable, +NColors, -Pixels, +NReds, +NGreens, +NBlues,
                               -RMask, -GMask, -BMask)
     

Pixels is a list of NColors pixel values (integers), and RMask, GMask, and BMask indicated NReds, NGreens, and NBlues planes, respectively, allocated from the colormap associated with Colormapable. Colormapable defaults to the default colormap of the default screen. For alloc_contig_color_planes/9, RMask, GMask, and BMask have contiguous bits turned on.