Module Import alias Import alias alias ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad BinOpMult Call NameLoad Num Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad If CompareNotEq BinOpMult Call NameLoad AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr body Raise NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return TupleLoad BinOpAdd AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Raise Call NameLoad Str If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return AttributeLoad NameLoad attr Return Call AttributeLoad Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body Raise Call NameLoad Str If Call AttributeLoad NameLoad attr NameLoad body TryExcept body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler type NameLoad body If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr If CompareGtE NameLoad Num body Raise Call NameLoad Str Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad SubscriptLoad NameLoad Index Num Assign SubscriptStore AttributeLoad NameLoad attr Index BinOpAdd NameLoad Num SubscriptLoad NameLoad Index Num Assign SubscriptStore AttributeLoad NameLoad attr Index BinOpAdd NameLoad Num SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr Num Return NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body Raise Call NameLoad Str If CompareEq Call NameLoad NameLoad Call NameLoad Str body Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad For NameStore Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad If CompareEq NameLoad Num body For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpDiv BinOpMult NameLoad NameLoad Num orelse Raise NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Assign NameStore ListLoad For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd BinOpMult BinOpPow BinOpDiv NameLoad Num NameLoad Num Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults Str body Assign NameStore Call NameLoad Num Expr Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad BinOpMult NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults Str body ImportFrom alias Assign NameStore ListLoad For NameStore Call NameLoad BinOpMult Num Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Num Num Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults Str body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Num NameLoad Assign NameStore Call NameLoad Num NameLoad Assign NameStore Call NameLoad Num NameLoad Return Call NameLoad Str BinOpAdd BinOpAdd NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults Str body Return Call NameLoad NameLoad BinOpMult Call NameLoad Num Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Str Assign NameStore NameLoad If UnaryOpNot NameLoad body TryExcept body Import alias Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad NameLoad NameLoad body Pass If UnaryOpNot NameLoad body TryExcept body Import alias Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad NameLoad NameLoad body Pass If UnaryOpNot NameLoad body TryExcept body Import alias Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad NameLoad NameLoad body Pass If UnaryOpNot NameLoad body Raise NameLoad Str Return NameLoad decorator_list
N/A N/A array N/A Image ImageColor ImagePalette N/A N/A N/A Colour palette for palette mapped images __init__ N/A N/A self mode palette N/A RGB None N/A N/A N/A self mode mode N/A N/A self rawmode None N/A N/A self palette N/A palette N/A N/A range 256 N/A len N/A self mode N/A N/A self colors N/A N/A N/A self dirty None N/A N/A N/A N/A len N/A self mode 256 N/A len N/A self palette N/A N/A ValueError wrong palette size N/A getdata N/A N/A self N/A N/A N/A N/A self rawmode N/A N/A N/A N/A self rawmode N/A self palette N/A N/A N/A N/A self mode ;L N/A N/A self tostring N/A tostring N/A N/A self N/A N/A N/A N/A self rawmode N/A N/A N/A ValueError palette contains raw palette data N/A N/A N/A Image isStringType N/A self palette N/A N/A N/A self palette N/A N/A N/A N/A N/A array array B N/A self palette tostring N/A getcolor N/A N/A self color N/A N/A N/A N/A self rawmode N/A N/A N/A ValueError palette contains raw palette data N/A N/A N/A Image isTupleType color N/A N/A N/A N/A N/A N/A self colors N/A color N/A N/A N/A KeyError N/A N/A N/A N/A Image isStringType N/A self palette N/A N/A N/A self palette N/A map int N/A self palette N/A index N/A len N/A self colors N/A N/A index 256 N/A N/A N/A ValueError cannot allocate more than 256 colors N/A N/A N/A self colors N/A color index N/A N/A N/A self palette N/A index N/A color N/A 0 N/A N/A N/A self palette N/A N/A index 256 N/A color N/A 1 N/A N/A N/A self palette N/A N/A index 512 N/A color N/A 2 N/A N/A self dirty 1 N/A index N/A N/A N/A ValueError N/A unknown color specifier: %r color N/A save N/A N/A self fp N/A N/A N/A N/A self rawmode N/A N/A N/A ValueError palette contains raw palette data N/A N/A N/A type fp N/A type N/A N/A fp N/A open fp w N/A N/A N/A fp write # Palette
 N/A N/A N/A fp write N/A # Mode: %s
 N/A self mode N/A i N/A range 256 N/A N/A N/A N/A fp write N/A %d i N/A j N/A range i N/A len N/A self palette 256 N/A N/A N/A N/A fp write N/A  %d N/A N/A self palette N/A j N/A N/A N/A fp write N/A N/A N/A fp close N/A N/A raw N/A N/A rawmode data N/A N/A N/A palette N/A ImagePalette N/A N/A palette rawmode rawmode N/A N/A palette palette data N/A N/A palette dirty 1 N/A palette N/A _make_linear_lut N/A N/A black white N/A N/A N/A lut N/A N/A N/A black 0 N/A N/A i N/A range 256 N/A N/A N/A N/A lut append N/A N/A white i 255 N/A N/A NotImplementedError N/A lut N/A _make_gamma_lut N/A N/A exp mode N/A RGB N/A N/A lut N/A N/A i N/A range 256 N/A N/A N/A N/A lut append N/A int N/A N/A N/A N/A i 255.0 exp 255.0 0.5 N/A lut N/A new N/A N/A mode data N/A N/A N/A N/A N/A N/A Image core new_palette mode data N/A negative N/A N/A mode N/A RGB N/A N/A palette N/A range 256 N/A N/A N/A palette reverse N/A N/A ImagePalette mode N/A palette N/A len mode N/A random N/A N/A mode N/A RGB N/A random randint N/A palette N/A N/A i N/A range N/A 256 N/A len mode N/A N/A N/A N/A palette append N/A randint 0 255 N/A N/A ImagePalette mode palette N/A sepia N/A N/A white N/A #fff0c0 N/A N/A N/A r g b N/A N/A ImageColor getrgb white N/A r N/A _make_linear_lut 0 r N/A g N/A _make_linear_lut 0 g N/A b N/A _make_linear_lut 0 b N/A N/A ImagePalette RGB N/A N/A r g b N/A wedge N/A N/A mode N/A RGB N/A N/A N/A ImagePalette mode N/A N/A range 256 N/A len mode N/A load N/A N/A filename N/A N/A N/A fp N/A open filename rb N/A lut None N/A N/A lut N/A N/A N/A N/A GimpPaletteFile N/A N/A N/A fp seek 0 N/A p N/A N/A GimpPaletteFile GimpPaletteFile fp N/A lut N/A N/A p getpalette N/A N/A N/A N/A SyntaxError ValueError N/A N/A N/A N/A lut N/A N/A N/A N/A GimpGradientFile N/A N/A N/A fp seek 0 N/A p N/A N/A GimpGradientFile GimpGradientFile fp N/A lut N/A N/A p getpalette N/A N/A N/A N/A SyntaxError ValueError N/A N/A N/A N/A lut N/A N/A N/A N/A PaletteFile N/A N/A N/A fp seek 0 N/A p N/A N/A PaletteFile PaletteFile fp N/A lut N/A N/A p getpalette N/A N/A N/A N/A SyntaxError ValueError N/A N/A N/A N/A lut N/A N/A IOError cannot load palette N/A lut N/A