/inkscape/src/ |
H A D | round.h | 9 if x is half way between two integers: we may in future use rint/round 14 round(double const x) function in namespace:Inkscape
|
H A D | decimal-round.h | 6 #include "round.h" 13 Implemented in terms of Inkscape::round, i.e. we make no guarantees as to what happens if x is 15 candidate is chosen for such case (round towards -infinity, +infinity, 0, or "even"). 28 return Inkscape::round( x * multiplier ) / multiplier;
|
H A D | round-test.h | 8 #include <round.h> 62 double result = Inkscape::round( nonneg_round_cases[i].arg0 ); 71 double result = Inkscape::round( nonpos_round_cases[i].arg0 );
|
/inkscape/share/extensions/ |
H A D | color_darker.py | 7 r=int(round(max(r*FACTOR,0))) 8 g=int(round(max(g*FACTOR,0))) 9 b=int(round(max(b*FACTOR,0)))
|
H A D | color_brighter.py | 18 r=min(int(round((r/FACTOR))), 255) 19 g=min(int(round((g/FACTOR))), 255) 20 b=min(int(round((b/FACTOR))), 255)
|
H A D | simplestyle.py | 233 return '#%02x%02x%02x' % (int(round(a[0]*255)),int(round(a[1]*255)),int(round(a[2]*255))) 241 return '#%02x%02x%02x' % (int(round(r*255)),int(round(g*255)),int(round(b*255)))
|
H A D | color_desaturate.py | 7 ig=int(round(l))
|
H A D | color_grayscale.py | 10 ig=int(round(l))
|
H A D | color_custom.py | 36 return '%02x%02x%02x' % (int(round(r)),int(round(g)),int(round(b)))
|
H A D | dots.py | 59 if round(p[lastDot][1][-2]) == round(p[0][1][-2]) and \ 60 round(p[lastDot][1][-1]) == round(p[0][1][-1]):
|
H A D | pixelsnap.py | 138 hlen = round(abs(pt1[0] - pt2[0]), Precision) 139 vlen = round(abs(pt1[1] - pt2[1]), Precision) 191 stroke_width = round(stroke_width) 222 transform[0][2] = round(transform[0][2]) 223 transform[1][2] = round(transform[1][2]) 325 rescale = round(width)/width, round(height)/height 349 fractional_offset = min_xy[0]-round(min_xy[0]), min_xy[1]-round(min_xy[1])-self.document_offset 400 xy[1] = prev_xy[1] # make the almost-equal values equal, so they round i [all...] |
H A D | hpgl_encoder.py | 247 if int(round(posX)) != int(round(oldPosX)) or int(round(posY)) != int(round(oldPosY)): 255 if int(round(oldPosX)) == int(round(singlePath[0][1][0])) and int(round(oldPosY)) == int(round(singlePath[0][1][1])): 260 if int(round(posX)) != int(round(oldPos [all...] |
H A D | guides_creator.py | 83 position = str(round((w / division) + (v - var) * (w / division) + vertical_shift,4)) + ",0" 84 orientation = str(round(h,4)) + ",0" 97 position = "0," + str(round((h / division) + (x - var) * (h / division) + horizontal_shift,4)) 98 orientation = "0," + str(round(w,4)) 304 h_orientation = '0,' + str(round(width,4)) 305 v_orientation = str(round(height,4)) + ',0'
|
/inkscape/share/palettes/ |
H A D | PaletteGen.py | 18 rval = int(round(r * 255)) 19 gval = int(round(g * 255)) 20 bval = int(round(b * 255)) 34 rval = int(round(r * 255)) 35 gval = int(round(g * 255)) 36 bval = int(round(b * 255)) 41 rval = int(round(r * 255)) 42 gval = int(round(g * 255)) 43 bval = int(round(b * 255)) 48 rval = int(round( [all...] |
/inkscape/src/display/ |
H A D | nr-filter-utils.h | 17 #include "round.h" 50 #define CLAMP_D_TO_U8(v) (unsigned char) clamp((int)round((v))) 69 #define CLAMP_D_TO_U8_ALPHA(v,a) (unsigned char) clamp_alpha((int)round((v)),(a))
|
H A D | nr-filter-colormatrix.cpp | 39 _v[i] = round(values[i]*255*255); 41 _v[i] = round(values[i]*255); 107 _v[0] = round((0.213 +0.787*coshue -0.213*sinhue)*255); 108 _v[1] = round((0.715 -0.715*coshue -0.715*sinhue)*255); 109 _v[2] = round((0.072 -0.072*coshue +0.928*sinhue)*255); 111 _v[3] = round((0.213 -0.213*coshue +0.143*sinhue)*255); 112 _v[4] = round((0.715 +0.285*coshue +0.140*sinhue)*255); 113 _v[5] = round((0.072 -0.072*coshue -0.283*sinhue)*255); 115 _v[6] = round((0.213 -0.213*coshue -0.787*sinhue)*255); 116 _v[7] = round((0.71 [all...] |
H A D | guideline.cpp | 96 int px = round(point_on_line_dt[Geom::X]); 97 int py = round(point_on_line_dt[Geom::Y]); 108 int position = round(point_on_line_dt[Geom::X]); 113 int position = round(point_on_line_dt[Geom::Y]); 126 sp_guideline_drawline (buf, buf->rect.left(), static_cast<gint>(round(y_intersect_left)), buf->rect.right(), static_cast<gint>(round(y_intersect_right)), gl->rgba); 134 sp_guideline_drawline (buf, buf->rect.right(), static_cast<gint>(round(y_intersect_right)), buf->rect.left(), static_cast<gint>(round(y_intersect_left)), gl->rgba); 143 sp_guideline_drawline (buf, static_cast<gint>(round(x_intersect_top)), buf->rect.top(), static_cast<gint>(round(x_intersect_botto [all...] |
H A D | nr-filter-composite.cpp | 37 : _k1(round(k1 * 255)) 38 , _k2(round(k2 * 255*255)) 39 , _k3(round(k3 * 255*255)) 40 , _k4(round(k4 * 255*255*255))
|
H A D | nr-filter-component-transfer.cpp | 75 _v[i] = round(CLAMP(values[i], 0.0, 1.0) * 255); 96 _v[i] = round(CLAMP(values[i], 0.0, 1.0) * 255); 113 , _intercept(round(intercept*255*255)) 114 , _slope(round(slope*255))
|
H A D | nr-filter-convolve-matrix.cpp | 88 guint32 ao = pxclamp(round(suma), 0, 255); 89 guint32 ro = pxclamp(round(sumr + ao * _bias), 0, ao); 90 guint32 go = pxclamp(round(sumg + ao * _bias), 0, ao); 91 guint32 bo = pxclamp(round(sumb + ao * _bias), 0, ao);
|
H A D | sp-ctrlcurve.cpp | 141 item->x1 = round( min_x - 1 ); 142 item->y1 = round( min_y - 1 ); 143 item->x2 = round( max_x + 1 ); 144 item->y2 = round( max_y + 1 );
|
H A D | sp-ctrlline.cpp | 128 item->x1 = round(MIN(s[Geom::X], e[Geom::X]) - 1); 129 item->y1 = round(MIN(s[Geom::Y], e[Geom::Y]) - 1); 130 item->x2 = round(MAX(s[Geom::X], e[Geom::X]) + 1); 131 item->y2 = round(MAX(s[Geom::Y], e[Geom::Y]) + 1);
|
/inkscape/share/extensions/test/ |
H A D | color_randomize.test.py | 53 self.assertEqual([0.47, 0.59], [round(hsl[1], 2), round(hsl[2], 2)]) 62 #self.assertEqual(0.75, round(hsl[0], 2)) 63 #self.assertEqual(0.48, round(hsl[1], 2)) 70 self.assertEqual([0.75, 0.59], [round(hsl[0], 2), round(hsl[2], 2)])
|
/inkscape/src/extension/internal/ |
H A D | wmf-print.cpp | 105 *ladx = (int16_t) round(fdx * scale); 184 int dwPxX = round(dwInchesX * 1200.0); 185 int dwPxY = round(dwInchesY * 1200.0); 189 int dwPxX = round(d.width() * 1200.0); 190 int dwPxY = round(d.height() * 1200.0); 566 linewidth = MAX(1, (uint32_t) round(scale * style->stroke_width.computed * PX2WORLD)); 958 int32_t const x0 = (int32_t) round(p0[X]); 959 int32_t const y0 = (int32_t) round(p0[Y]); 977 //int32_t const x0 = (int32_t) round(p0[X]); 978 //int32_t const y0 = (int32_t) round(p [all...] |
H A D | emf-print.cpp | 101 *ladx = (uint32_t) round(fdx * scale); 676 uint32_t linewidth = MAX(1, (uint32_t) round(scale * style->stroke_width.computed * PX2WORLD)); 711 dash[i] = MAX(1, (uint32_t) round(scale * style->stroke_dasharray.values[i] * PX2WORLD)); 884 *angle = round(*angle * convert)/convert; 978 tv.x = (int32_t) round(Pt[X]); 979 tv.y = (int32_t) round(Pt[Y]); 1267 tmpTransform.eDx = round((ul)[Geom::X]); // use explicit round for better stability 1268 tmpTransform.eDy = round((ul)[Geom::Y]); 1294 rcb.left = round(outU [all...] |