name the layer effect
This script attempts to make the neon glow layer effect which emulates the Neon Glow Script-fu that every GIMP has had since gimp-1.0.
Download the script. Also, the simple difference layer effect is not a long read:
def layer_effect_neon_glow(image, drawable): foreground = (0,0,0) background = (38,211,255) pdb['gimp-context-set-foreground'](foreground) pdb['gimp-context-set-background'](background) pdb['gimp-image-undo-group-start'](image) color_layer = pdb['gimp-layer-new'](image, image.width, image.height, RGBA_IMAGE, 'color layer', 100, NORMAL_MODE) pdb['gimp-image-add-layer'](image, color_layer, 1) pdb['gimp-drawable-fill'](color_layer, BACKGROUND_FILL) pdb['gimp-selection-layer-alpha'](drawable) extract_layer = pdb['gimp-layer-new'](image, image.width, image.height, RGBA_IMAGE, 'extract layer', 100, NORMAL_MODE) pdb['gimp-image-add-layer'](image, extract_layer, 1) pdb['gimp-drawable-fill'](extract_layer, WHITE_FILL) pdb['gimp-edit-fill'](extract_layer, FOREGROUND_FILL) pdb['gimp-selection-none'](image) pdb['gimp-layer-set-mode'](extract_layer, GRAIN_EXTRACT_MODE) layer_copy = pdb['gimp-layer-copy'](extract_layer, True) pdb['gimp-image-add-layer'](image, layer_copy, 1) pdb['gimp-layer-set-mode'](layer_copy, GRAIN_EXTRACT_MODE) pdb['plug-in-gauss-rle2'](image, extract_layer, 15, 15) pdb['gimp-levels'](extract_layer, HISTOGRAM_VALUE, 100, 255, .62, 0, 255)