Lines Matching defs:by
1268 RotateableSwatch::color_adjust(float *hsla, double by, guint32 cc, guint modifier)
1275 if (by > 0) {
1276 hsla[1] += by * (1 - hsla[1]);
1278 hsla[1] += by * (hsla[1]);
1283 if (by > 0) {
1284 hsla[2] += by * (1 - hsla[2]);
1286 hsla[2] += by * (hsla[2]);
1291 hsla[3] += by/2;
1300 hsla[0] += by/2;
1336 RotateableSwatch::do_motion(double by, guint modifier) {
1380 diff = color_adjust(hsla, by, cc, modifier);
1410 RotateableSwatch::do_scroll(double by, guint modifier) {
1411 do_motion(by/30.0, modifier);
1412 do_release(by/30.0, modifier);
1416 RotateableSwatch::do_release(double by, guint modifier) {
1421 color_adjust(hsla, by, startcolor, modifier);
1477 RotateableStrokeWidth::value_adjust(double current, double by, guint /*modifier*/, bool final)
1480 // by is -1..1
1481 if (by < 0) {
1483 newval = current * (1 + by);
1486 newval = current * (1 + by) * (1 + by);
1506 RotateableStrokeWidth::do_motion(double by, guint modifier) {
1520 double diff = value_adjust(startvalue, by, modifier, false);
1528 RotateableStrokeWidth::do_release(double by, guint modifier) {
1533 value_adjust(startvalue, by, modifier, true);
1548 RotateableStrokeWidth::do_scroll(double by, guint modifier) {
1549 do_motion(by/10.0, modifier);