check_color Function

Defined in pyglet.extlibs.png

check_color(c, greyscale, which)

Checks that a colour argument for transparent or background options is the right form. Returns the colour (which, if it’s a bar integer, is “corrected” to a 1-tuple).

Previous topic

check_bitdepth_colortype Function

Next topic

check_palette Function