/inkscape/share/extensions/ |
H A D | color_lesshue.py | 11 rgb = self.hsl_to_rgb(hsl[0], hsl[1], hsl[2]) 12 return '%02x%02x%02x' % (rgb[0]*255, rgb[1]*255, rgb[2]*255)
|
H A D | color_lesslight.py | 11 rgb = self.hsl_to_rgb(hsl[0], hsl[1], hsl[2]) 12 return '%02x%02x%02x' % (rgb[0]*255, rgb[1]*255, rgb[2]*255)
|
H A D | color_lesssaturation.py | 11 rgb = self.hsl_to_rgb(hsl[0], hsl[1], hsl[2]) 12 return '%02x%02x%02x' % (rgb[0]*255, rgb[1]*255, rgb[2]*255)
|
H A D | color_morehue.py | 11 rgb = self.hsl_to_rgb(hsl[0], hsl[1], hsl[2]) 12 return '%02x%02x%02x' % (rgb[0]*255, rgb[1]*255, rgb[2]*255)
|
H A D | color_morelight.py | 11 rgb = self.hsl_to_rgb(hsl[0], hsl[1], hsl[2]) 12 return '%02x%02x%02x' % (rgb[0]*255, rgb[1]*255, rgb[2]*255)
|
H A D | color_moresaturation.py | 11 rgb = self.hsl_to_rgb(hsl[0], hsl[1], hsl[2]) 12 return '%02x%02x%02x' % (rgb[0]*255, rgb[1]*255, rgb[2]*255)
|
H A D | color_HSL_adjust.py | 63 rgb = self.hsl_to_rgb(hsl[0], hsl[1], hsl[2]) 64 return '%02x%02x%02x' % (rgb[0]*255, rgb[1]*255, rgb[2]*255)
|
H A D | color_randomize.py | 53 rgb = self.hsl_to_rgb(hsl[0], hsl[1], hsl[2]) 54 return '%02x%02x%02x' % (rgb[0]*255, rgb[1]*255, rgb[2]*255)
|
H A D | coloreffect.py | 194 rgb = [0, 0, 0] 196 rgb[0] = l 197 rgb[1] = l 198 rgb[2] = l 205 rgb[0] = self.hue_2_rgb (v1, v2, h*6 + 2.0) 206 rgb[1] = self.hue_2_rgb (v1, v2, h*6) 207 rgb[2] = self.hue_2_rgb (v1, v2, h*6 - 2.0) 208 return rgb
|
/inkscape/src/ |
H A D | color.cpp | 220 * Fill rgb float array with values from SPColor. 221 * \pre color != NULL && rgb != NULL && rgb[0-2] is meaningful 224 sp_color_get_rgb_floatv(SPColor const *color, float *rgb) argument 227 return_if_fail (rgb != NULL); 229 rgb[0] = color->v.c[0]; 230 rgb[1] = color->v.c[1]; 231 rgb[2] = color->v.c[2]; 290 * Fill rgb float array from h,s,v float values. 293 sp_color_hsv_to_rgb_floatv (float *rgb, floa argument 378 sp_color_hsl_to_rgb_floatv(float *rgb, float h, float s, float l) argument 434 sp_color_cmyk_to_rgb_floatv(float *rgb, float c, float m, float y, float k) argument [all...] |
H A D | color.h | 69 void sp_color_get_rgb_floatv (const SPColor *color, float *rgb); 75 void sp_color_hsv_to_rgb_floatv (float *rgb, float h, float s, float v); 78 void sp_color_hsl_to_rgb_floatv (float *rgb, float h, float s, float l); 81 void sp_color_cmyk_to_rgb_floatv (float *rgb, float c, float m, float y, float k);
|
/inkscape/src/libdepixelize/priv/ |
H A D | colorspace.h | 44 inline void rgb2yuv(const guint8 rgb[], guint8 yuv[]) argument 46 rgb2yuv(rgb[0], rgb[1], rgb[2], yuv[0], yuv[1], yuv[2]);
|
/inkscape/src/trace/ |
H A D | quantize.cpp | 33 RGB rgb; // rgb's prefix of that node member in struct:Ocnode_def 49 color_prefix(stored in rgb):width 146 inline RGB operator>>(RGB rgb, int s) argument 149 res.r = rgb.r >> s; res.g = rgb.g >> s; res.b = rgb.b >> s; 157 inline int childIndex(RGB rgb) argument 159 return (((rgb.r)&1)<<2) | (((rgb 227 ocnodeLeaf(pool<Ocnode> *pool, Ocnode **ref, RGB rgb) argument 522 findRGB(RGB *rgbpal, int ncolor, RGB rgb) argument 586 RGB rgb = rgbmap->getPixel(rgbmap, x, y); local [all...] |
H A D | imagemap.cpp | 123 static void ppSetPixelLong(PackedPixelMap *me, int x, int y, unsigned long rgb) argument 126 *pix = rgb; 152 unsigned long rgb = me->getPixel(me, x, y); local 153 unsigned char r = (unsigned char) ((rgb>>16) & 0xff); 154 unsigned char g = (unsigned char) ((rgb>> 8) & 0xff); 155 unsigned char b = (unsigned char) ((rgb ) & 0xff); 233 static void rSetPixelRGB(RgbMap *me, int x, int y, RGB rgb) argument 236 *pix = rgb; 262 RGB rgb = me->getPixel(me, x, y); local 263 fputc(rgb 351 RGB rgb = me->clut[((*pix)&0xff)]; local 372 RGB rgb = me->getPixelValue(me, x, y); local 434 RGB rgb; local [all...] |
H A D | filterset.cpp | 124 RGB rgb = me->getPixel(me, j, i); local 125 sumR += weight * (int)rgb.r; 126 sumG += weight * (int)rgb.g; 127 sumB += weight * (int)rgb.b; 392 RGB rgb = qMap->getPixelValue(qMap, x, y); local 393 int sum = rgb.r + rgb.g + rgb.b; 398 // printf("%d %d %d : %d\n", rgb.r, rgb [all...] |
H A D | imagemap.h | 122 void (*setPixelLong)(PackedPixelMap *me, int x, int y, unsigned long rgb); 220 void (*setPixelRGB)(RgbMap *me, int x, int y, RGB rgb);
|
H A D | imagemap-gdk.cpp | 200 RGB rgb = iMap->getPixelValue(iMap, x, y); local 201 p[0] = rgb.r & 0xff; 202 p[1] = rgb.g & 0xff; 203 p[2] = rgb.b & 0xff;
|
/inkscape/src/extension/internal/ |
H A D | latex-pstricks.cpp | 190 float rgb[3]; local 196 sp_color_get_rgb_floatv(&style->fill.value.color, rgb); 197 os << "{\n\\newrgbcolor{curcolor}{" << rgb[0] << " " << rgb[1] << " " << rgb[2] << "}\n"; local 225 float rgb[3]; local 232 sp_color_get_rgb_floatv(&style->stroke.value.color, rgb); 233 os << "{\n\\newrgbcolor{curcolor}{" << rgb[0] << " " << rgb[1] << " " << rgb[ local [all...] |
H A D | odf.h | 129 GradientStop() : rgb(0), opacity(0) 132 { rgb = rgbArg; opacity = opacityArg; } 141 rgb = other.rgb; 144 unsigned long rgb; member in class:Inkscape::Extension::Internal::GradientStop 228 if (g1.rgb != g2.rgb)
|
H A D | wmf-print.cpp | 160 gv.rgb[0] = (float) U_RGBAGetR(gv.bgc) / 255.0; 161 gv.rgb[1] = (float) U_RGBAGetG(gv.bgc) / 255.0; 162 gv.rgb[2] = (float) U_RGBAGetB(gv.bgc) / 255.0; 337 float rgb[3]; local 375 sp_color_get_rgb_floatv(&style->fill.value.color, rgb); 376 hatchColor = U_RGB(255 * rgb[0], 255 * rgb[1], 255 * rgb[2]); 546 float rgb[3]; local 549 sp_color_get_rgb_floatv(&style->stroke.value.color, rgb); 670 float rgb[3]; local 1460 float rgb[3]; local [all...] |
H A D | emf-print.cpp | 163 gv.rgb[0] = (float) U_RGBAGetR(gv.bgc) / 255.0; 164 gv.rgb[1] = (float) U_RGBAGetG(gv.bgc) / 255.0; 165 gv.rgb[2] = (float) U_RGBAGetB(gv.bgc) / 255.0; 345 float rgb[3]; local 384 sp_color_get_rgb_floatv(&style->fill.value.color, rgb); 385 hatchColor = U_RGB(255 * rgb[0], 255 * rgb[1], 255 * rgb[2]); 571 float rgb[3]; local 652 sp_color_get_rgb_floatv(&style->stroke.value.color, rgb); 1162 float rgb[3]; local 2093 float rgb[3]; local [all...] |
/inkscape/src/trace/potrace/ |
H A D | inkscape-potrace.cpp | 216 //rgbMap->writePPM(rgbMap, "rgb.ppm"); 304 RGB rgb = newGm->clut[i]; local 305 int grayVal = (rgb.r + rgb.g + rgb.b) / 3; 306 rgb.r = rgb.g = rgb.b = grayVal; 307 newGm->clut[i] = rgb; 565 RGB rgb local [all...] |
/inkscape/share/extensions/test/ |
H A D | color_randomize.test.py | 16 def extract_hsl(e,rgb): 17 r = int(rgb[:2], 16) 18 g = int(rgb[2:4], 16) 19 b = int(rgb[4:6], 16)
|
/inkscape/src/widgets/ |
H A D | swatch-selector.cpp | 79 guint32 rgb = color.toRGBA32( 0x00 ); local 84 sp_svg_write_color(c, sizeof(c), rgb);
|
/inkscape/src/svg/ |
H A D | svg-color.cpp | 49 unsigned long rgb; member in struct:SPSVGColor 237 /* handle #rgb case */ 250 } else if (strneq(str, "rgb(", 4)) { 357 gfloat rgb[3]; local 359 sp_color_hsl_to_rgb_floatv( rgb, h, s, l ); 361 val = static_cast<guint>(floor(CLAMP(rgb[0], 0.0, 1.0) * 255.9999)) << 24; 362 val |= (static_cast<guint>(floor(CLAMP(rgb[1], 0.0, 1.0) * 255.9999)) << 16); 363 val |= (static_cast<guint>(floor(CLAMP(rgb[2], 0.0, 1.0) * 255.9999)) << 8); 461 /* Can use the shorter three-digit form #rgb instead of #rrggbb. */ 505 colors[sp_svg_color_named[i].name] = sp_svg_color_named[i].rgb; [all...] |