Code

reduce force of color tweaking
authorbuliabyak <buliabyak@users.sourceforge.net>
Mon, 3 Sep 2007 18:17:12 +0000 (18:17 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Mon, 3 Sep 2007 18:17:12 +0000 (18:17 +0000)
src/tweak-context.cpp
src/tweak-context.h

index d457b1318e27d17946bb69a29ec0b35b762cecec..1e7379dea2e68097d5c35345c8e5adc3ad78eb13 100644 (file)
@@ -795,7 +795,7 @@ sp_tweak_dilate (SPTweakContext *tc, NR::Point event_p, NR::Point p, NR::Point v
     if (radius == 0 || force == 0) {
         return false;
     }
-    double color_force = MIN(sqrt(force)/4.0, 1);
+    double color_force = MIN(sqrt(force)/20.0, 1);
 
     SPItem *item_at_point = SP_EVENT_CONTEXT(tc)->desktop->item_at_point(event_p, TRUE);
     Inkscape::XML::Node *tool_repr = inkscape_get_repr(INKSCAPE, "tools.tweak");
index 8fccaf97000ed9faf6e3a68b3c584658dda63770..268ea1fcf766e31bfabafef2673d6e7296030ab7 100644 (file)
@@ -30,7 +30,7 @@ class SPTweakContextClass;
 
 #define TC_MIN_PRESSURE      0.0
 #define TC_MAX_PRESSURE      1.0
-#define TC_DEFAULT_PRESSURE  0.4
+#define TC_DEFAULT_PRESSURE  0.3
 
 enum {
     TWEAK_MODE_PUSH,