summaryrefslogtreecommitdiffstats
path: root/src/gradient-chemistry.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-10-07 06:00:44 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-10-07 06:00:44 +0000
commitbc05a992b63ef69a954e26b16a88d981e4283461 (patch)
treeb69a560f12d9cbe7ac7beaa943234cda25cb48b8 /src/gradient-chemistry.cpp
parentExposed preference for smaller tool icons on the left. (Needed for (diff)
downloadinkscape-bc05a992b63ef69a954e26b16a88d981e4283461.tar.gz
inkscape-bc05a992b63ef69a954e26b16a88d981e4283461.zip
export average_color
(bzr r3847)
Diffstat (limited to 'src/gradient-chemistry.cpp')
-rw-r--r--src/gradient-chemistry.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gradient-chemistry.cpp b/src/gradient-chemistry.cpp
index df013fdfc..486d38167 100644
--- a/src/gradient-chemistry.cpp
+++ b/src/gradient-chemistry.cpp
@@ -558,8 +558,8 @@ sp_get_stop_i(SPGradient *gradient, guint stop_i)
return stop;
}
-static guint32
-average_color (guint32 c1, guint32 c2, gdouble p = 0.5)
+guint32
+average_color (guint32 c1, guint32 c2, gdouble p)
{
guint32 r = (guint32) (SP_RGBA32_R_U (c1) * (1 - p) + SP_RGBA32_R_U (c2) * p);
guint32 g = (guint32) (SP_RGBA32_G_U (c1) * (1 - p) + SP_RGBA32_G_U (c2) * p);