Lines Matching defs:force

111     , force(0.2)
278 sp_event_context_read(this, "force");
309 } else if (path == "force") {
310 this->force = CLAMP(val.getDouble(1.0), 0, 1.0);
344 double force = 8 * (tc->usepressure? tc->pressure : TC_DEFAULT_PRESSURE)
346 if (force > 3) {
347 force += 4 * (force - 3);
349 return force * tc->force;
355 double force = (tc->usepressure? tc->pressure : TC_DEFAULT_PRESSURE);
356 return force * tc->force;
360 sp_tweak_dilate_recursive (Inkscape::Selection *selection, SPItem *item, Geom::Point p, Geom::Point vector, gint mode, double radius, double force, double fidelity, bool reverse)
397 if (sp_tweak_dilate_recursive (selection, child, p, vector, mode, radius, force, fidelity, reverse)) {
412 Geom::Point move = force * 0.5 * (cos(M_PI * x) + 1) * vector;
425 Geom::Point move = force * 0.5 * (cos(M_PI * x) + 1) *
441 Geom::Point move = force * 0.5 * (cos(M_PI * x) + 1) * Geom::Point(cos(dp)*dr, sin(dp)*dr);
454 double scale = 1 + (reverse? force : -force) * 0.05 * (cos(M_PI * x) + 1);
467 double angle = (reverse? force : -force) * 0.05 * (cos(M_PI * x) + 1) * M_PI;
480 double prob = force * 0.5 * (cos(M_PI * x) + 1);
567 reverse? force : -force,
573 reverse? force : -force,
581 true, p, force*2*vector, radius, &i2doc) == 0)
585 force,
599 double threshold = MAX(th_max, th_max*force);
662 tweak_colorpaint (float *color, guint32 goal, double force, bool do_h, bool do_s, bool do_l)
689 color[i] += d * force;
694 tweak_colorjitter (float *color, double force, bool do_h, bool do_s, bool do_l)
700 hsl_c[0] += g_random_double_range(-0.5, 0.5) * force;
709 hsl_c[1] += g_random_double_range(-hsl_c[1], 1 - hsl_c[1]) * force;
712 hsl_c[2] += g_random_double_range(-hsl_c[2], 1 - hsl_c[2]) * force;
719 tweak_color (guint mode, float *color, guint32 goal, double force, bool do_h, bool do_s, bool do_l)
722 tweak_colorpaint (color, goal, force, do_h, do_s, do_l);
724 tweak_colorjitter (color, force, do_h, do_s, do_l);
729 tweak_opacity (guint mode, SPIScale24 *style_opacity, double opacity_goal, double force)
735 opacity += d * force;
737 opacity += g_random_double_range(-opacity, 1 - opacity) * force;
762 guint32 const rgb_goal, Geom::Point p_w, double radius, double force, guint mode,
850 // distribute the force between the two endstops so that they
853 force * (pos_e - offset_l) / (offset_h - offset_l),
856 force * (offset_h - pos_e) / (offset_h - offset_l),
863 // paint each stop by the force from the profile curve
866 force * tweak_profile (fabs (pos_e - offset_l), r),
873 force * tweak_profile (fabs (pos_e - offset_h), r),
891 Geom::Point p, double radius, double force,
905 p, radius, force, do_h, do_s, do_l, do_o)) {
926 // if item == item_at_point, use max force
928 this_force = force;
939 this_force = force * tweak_profile (Geom::L2 (p - center), radius);
973 blur_new = blur_now - 0.06 * force;
975 blur_new = blur_now + 0.06 * force;
1389 this->force += 0.05;
1390 if (this->force > 1.0) {
1391 this->force = 1.0;
1393 desktop->setToolboxAdjustmentValue ("tweak-force", this->force * 100);
1400 this->force -= 0.05;
1401 if (this->force < 0.0) {
1402 this->force = 0.0;
1404 desktop->setToolboxAdjustmentValue ("tweak-force", this->force * 100);