gegl r2686 - in trunk: . gegl/property-types
- From: ok svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r2686 - in trunk: . gegl/property-types
- Date: Sun, 2 Nov 2008 20:57:30 +0000 (UTC)
Author: ok
Date: Sun Nov 2 20:57:30 2008
New Revision: 2686
URL: http://svn.gnome.org/viewvc/gegl?rev=2686&view=rev
Log:
* gegl/property-types/gegl-path.c: (gegl_path_stroke): when stroking
make the linewidth and opacity parameter paths act as weights on the
values from properties.
Modified:
trunk/ChangeLog
trunk/gegl/property-types/gegl-path.c
Modified: trunk/gegl/property-types/gegl-path.c
==============================================================================
--- trunk/gegl/property-types/gegl-path.c (original)
+++ trunk/gegl/property-types/gegl-path.c Sun Nov 2 20:57:30 2008
@@ -1990,6 +1990,7 @@
local_pos += spacing)
{
Point spot;
+ gfloat gopacity;
gfloat ratio = local_pos / distance;
gfloat radius = linewidth/2;
/* XXX: gegl_path_parameter_calc (vector, "linewidth",
@@ -1999,14 +2000,15 @@
* able to have variable line width
*/
if (gegl_path_get_parameter_path (vector, "linewidth"))
- radius = gegl_path_parameter_calc (vector, "linewidth", traveled_length) /2;
+ radius *= gegl_path_parameter_calc (vector, "linewidth", traveled_length);
+ gopacity = opacity;
if (gegl_path_get_parameter_path (vector, "opacity"))
- radius = gegl_path_parameter_calc (vector, "opacity", traveled_length);
+ gopacity *= gegl_path_parameter_calc (vector, "opacity", traveled_length);
lerp (&spot, &a, &b, ratio);
gegl_path_stamp (buffer, clip_rect,
- spot.x, spot.y, radius, hardness, color, opacity);
+ spot.x, spot.y, radius, hardness, color, gopacity);
traveled_length += spacing;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]