Commit c633a419 authored by Henrik Brix Andersen's avatar Henrik Brix Andersen Committed by Henrik Brix Andersen
Browse files

use gimp_edit_bucket_fill() and gimp_edit_blend() instead of deprecated

2004-01-06 Henrik Brix Andersen <brix@gimp.org>

* plug-ins/pygimp/plug-ins/sphere.py (python_sphere): use
gimp_edit_bucket_fill() and gimp_edit_blend() instead of
deprecated functions.
parent 8099e692
2004-01-06 Henrik Brix Andersen <brix@gimp.org>
* plug-ins/pygimp/plug-ins/sphere.py (python_sphere): use
gimp_edit_bucket_fill() and gimp_edit_blend() instead of
deprecated functions.
2004-01-06 Sven Neumann <sven@gimp.org>
 
* libgimpthumb/gimpthumbnail.[ch]: added new function
......@@ -53,13 +53,13 @@ def python_sphere(radius, light, shadow, bg_colour, sphere_colour):
shadow_w = -shadow_w
pdb.gimp_ellipse_select(img, shadow_x, shadow_y, shadow_w, shadow_h,
CHANNEL_OP_REPLACE, TRUE, TRUE, 7.5)
pdb.gimp_bucket_fill(drawable, BG_BUCKET_FILL,
MULTIPLY_MODE, 100, 0, FALSE, 0, 0)
pdb.gimp_edit_bucket_fill(drawable, BG_BUCKET_FILL,
MULTIPLY_MODE, 100, 0, FALSE, 0, 0)
pdb.gimp_ellipse_select(img, cx - radius, cy - radius, 2 * radius,
2 * radius, CHANNEL_OP_REPLACE, TRUE, FALSE, 0)
pdb.gimp_blend(drawable, FG_BG_RGB_MODE, NORMAL_MODE, GRADIENT_RADIAL,
100, offset, REPEAT_NONE, FALSE, FALSE, 0, 0, TRUE,
light_x, light_y, light_end_x, light_end_y)
pdb.gimp_edit_blend(drawable, FG_BG_RGB_MODE, NORMAL_MODE, GRADIENT_RADIAL,
100, offset, REPEAT_NONE, FALSE, FALSE, 0, 0, TRUE,
light_x, light_y, light_end_x, light_end_y)
pdb.gimp_selection_none(img)
gimp.set_background(old_bg)
gimp.set_foreground(old_fg)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment