carol.gimp.org

gimp2

Python:checkerboard background

python

This sub-routine makes a checkerboard (like gimp transparency) background.

checkerboard

File   Edit   Search   Preferences


def make_checkerboard(image, drawable):
        old_bg = pdb.gimp_context_get_background()
        old_fg = pdb.gimp_context_get_foreground()
        check1, check2 = (153,153,153),(102,102,102)
        pdb.gimp_context_set_background(check1)
        pdb.gimp_context_set_foreground(check2)
        pdb.plug_in_checkerboard(image, drawable, 0, 4)
        pdb.gimp_context_set_background(old_bg)
        pdb.gimp_context_set_foreground(old_fg)
        return image, drawable


  

another-gnu-type

Most all of my software is gnu. thanks!

Valid XHTML 1.1!

CC-GNU GPL
This software is licensed under the CC-GNU GPL.