Searched refs:rgb (Results 1 - 25 of 49) sorted by relevance

12

/inkscape/share/extensions/
H A Dcolor_lesshue.py11 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 Dcolor_lesslight.py11 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 Dcolor_lesssaturation.py11 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 Dcolor_morehue.py11 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 Dcolor_morelight.py11 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 Dcolor_moresaturation.py11 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 Dcolor_HSL_adjust.py63 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 Dcolor_randomize.py53 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 Dcoloreffect.py194 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 Dcolor.cpp220 * 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 Dcolor.h69 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 Dcolorspace.h44 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 Dquantize.cpp33 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 Dimagemap.cpp123 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 Dfilterset.cpp124 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 Dimagemap.h122 void (*setPixelLong)(PackedPixelMap *me, int x, int y, unsigned long rgb);
220 void (*setPixelRGB)(RgbMap *me, int x, int y, RGB rgb);
H A Dimagemap-gdk.cpp200 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 Dlatex-pstricks.cpp190 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 Dodf.h129 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 Dwmf-print.cpp160 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 Demf-print.cpp163 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 Dinkscape-potrace.cpp216 //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 Dcolor_randomize.test.py16 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 Dswatch-selector.cpp79 guint32 rgb = color.toRGBA32( 0x00 ); local
84 sp_svg_write_color(c, sizeof(c), rgb);
/inkscape/src/svg/
H A Dsvg-color.cpp49 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...]

Completed in 162 milliseconds

12