[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.3 Colormap

See section Resource, for additional methods on Colormap objects.

Method on Colormap: free ( onerror = None )
Method on Colormap: copy_colormap_and_free ( scr_cmap )

Returns Colormap.

Method on Colormap: install_colormap ( onerror = None )
Method on Colormap: uninstall_colormap ( onerror = None )
Method on Colormap: alloc_color ( red, green, blue )
Method on Colormap: alloc_named_color ( name )

Returns None or Card32(’pixel’), Card16(’exact_red’), Card16(’exact_green’), Card16(’exact_blue’), Card16(’screen_red’), Card16(’screen_green’), Card16(’screen_blue’),

Method on Colormap: alloc_color_cells ( contiguous, colors, planes )

Returns List(’pixels’, Card32Obj), List(’masks’, Card32Obj),

Method on Colormap: alloc_color_planes ( contiguous, colors, red, green, blue )

Returns Card32(’red_mask’), Card32(’green_mask’), Card32(’blue_mask’), List(’pixels’, Card32Obj),

Method on Colormap: free_colors ( pixels, plane_mask, onerror = None )
Method on Colormap: store_colors ( items, onerror = None )
Method on Colormap: store_named_color ( name, pixel, flags, onerror = None )
Method on Colormap: query_colors ( pixels )

Returns List(’colors’, structs.RGB),

Method on Colormap: lookup_color ( name )

Returns Card16(’exact_red’), Card16(’exact_green’), Card16(’exact_blue’), Card16(’screen_red’), Card16(’screen_green’), Card16(’screen_blue’),


This document was generated on September 16, 2020 using texi2html 5.0.