/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/values/ |
D | GradientColorValue.java | 11 private float[] colors = {1, 1, 1}; field in GradientColorValue 23 return colors; in getColors() 26 public void setColors (float[] colors) { in setColors() argument 27 this.colors = colors; in setColors() 49 float r1 = colors[startIndex]; in getColor() 50 float g1 = colors[startIndex + 1]; in getColor() 51 float b1 = colors[startIndex + 2]; in getColor() 60 out[index] = r1 + (colors[endIndex] - r1) * factor; in getColor() 61 out[index+1] = g1 + (colors[endIndex + 1] - g1) * factor; in getColor() 62 out[index+2] = b1 + (colors[endIndex + 2] - b1) * factor; in getColor() [all …]
|
/external/skia/gm/ |
D | verylargebitmap.cpp | 15 static void draw(SkCanvas* canvas, int width, int height, SkColor colors[2]) { in draw() 18 SkShader* shader = SkGradientShader::CreateRadial(center, radius, colors, nullptr, 2, in draw() 26 static SkImage* make_raster_image(int width, int height, SkColor colors[2]) { in make_raster_image() 28 draw(surface->getCanvas(), width, height, colors); in make_raster_image() 32 static SkImage* make_picture_image(int width, int height, SkColor colors[2]) { in make_picture_image() 34 draw(recorder.beginRecording(SkRect::MakeIWH(width, height)), width, height, colors); in make_picture_image() 40 typedef SkImage* (*ImageMakerProc)(int width, int height, SkColor colors[2]); 42 static void show_image(SkCanvas* canvas, int width, int height, SkColor colors[2], in show_image() 44 SkAutoTUnref<SkImage> image(proc(width, height, colors)); in show_image() 95 SkColor colors[2]; in onDraw() local [all …]
|
D | shallowgradient.cpp | 13 static SkShader* shader_linear(const SkColor colors[], int count, const SkSize& size) { in shader_linear() argument 15 return SkGradientShader::CreateLinear(pts, colors, nullptr, count, in shader_linear() 19 static SkShader* shader_radial(const SkColor colors[], int count, const SkSize& size) { in shader_radial() argument 21 return SkGradientShader::CreateRadial(center, size.width()/2, colors, nullptr, count, in shader_radial() 25 static SkShader* shader_conical(const SkColor colors[], int count, const SkSize& size) { in shader_conical() argument 29 colors, nullptr, count, in shader_conical() 33 static SkShader* shader_sweep(const SkColor colors[], int count, const SkSize& size) { in shader_sweep() argument 35 colors, nullptr, count); in shader_sweep() 57 const SkColor colors[] = { sk_tool_utils::color_to_565(0xFF555555), in onDraw() local 59 const int colorCount = SK_ARRAY_COUNT(colors); in onDraw() [all …]
|
D | composeshader.cpp | 20 SkColor colors[2]; in make_shader() local 24 colors[0] = SK_ColorRED; in make_shader() 25 colors[1] = SK_ColorBLUE; in make_shader() 26 SkAutoTUnref<SkShader> shaderA(SkGradientShader::CreateLinear(pts, colors, nullptr, 2, in make_shader() 31 colors[0] = SK_ColorBLACK; in make_shader() 32 colors[1] = SkColorSetARGB(0x80, 0, 0, 0); in make_shader() 33 SkAutoTUnref<SkShader> shaderB(SkGradientShader::CreateLinear(pts, colors, nullptr, 2, in make_shader() 153 SkColor colors[2]; in make_linear_gradient_shader() local 156 colors[0] = SK_ColorBLUE; in make_linear_gradient_shader() 157 colors[1] = SkColorSetARGB(0, 0, 0, 0xFF); in make_linear_gradient_shader() [all …]
|
/external/skia/src/core/ |
D | SkBitmapProcState_sample.h | 13 int count, SkPMColor* SK_RESTRICT colors); 16 int count, SkPMColor* SK_RESTRICT colors); 19 int count, SkPMColor* SK_RESTRICT colors); 22 int count, SkPMColor* SK_RESTRICT colors); 26 int count, SkPMColor* SK_RESTRICT colors) { in MAKENAME() 27 SkASSERT(count > 0 && colors != nullptr); in MAKENAME() 45 *colors++ = RETURNDST(src); in MAKENAME() 51 *colors++ = RETURNDST(src); in MAKENAME() 58 *colors++ = RETURNDST(src); in MAKENAME() 68 int count, SkPMColor* SK_RESTRICT colors) { in MAKENAME() [all …]
|
D | SkColorTable.cpp | 16 void SkColorTable::init(const SkPMColor colors[], int count) { in init() argument 22 memcpy(fColors, colors, count * sizeof(SkPMColor)); in init() 25 SkColorTable::SkColorTable(const SkPMColor colors[], int count) { in SkColorTable() argument 26 SkASSERT(0 == count || colors); in SkColorTable() 32 this->init(colors, count); in SkColorTable() 35 SkColorTable::SkColorTable(SkPMColor* colors, int count, AllocatedWithMalloc) in SkColorTable() argument 36 : fColors(colors) in SkColorTable() 40 SkASSERT(colors); in SkColorTable() 105 SkAutoTDelete<SkPMColor> colors((SkPMColor*)sk_malloc_throw(allocSize)); in Create() local 106 if (!buffer.readColorArray(colors, count)) { in Create() [all …]
|
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/flame/ |
D | GradientPanel.java | 59 gradientEditor.colors.clear(); in GradientPanel() 60 float[] colors = value.getColors(); in GradientPanel() local 61 for (int i = 0; i < colors.length;) { in GradientPanel() 62 float r = colors[i++]; in GradientPanel() 63 float g = colors[i++]; in GradientPanel() 64 float b = colors[i++]; in GradientPanel() 65 gradientEditor.colors.add(new Color(r, g, b)); in GradientPanel() 67 if (gradientEditor.colors.isEmpty() || gradientEditor.percentages.isEmpty()) { in GradientPanel() 71 gradientEditor.colors.clear(); in GradientPanel() 72 gradientEditor.colors.add(Color.white); in GradientPanel() [all …]
|
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/particleeditor/ |
D | GradientPanel.java | 61 gradientEditor.colors.clear(); in GradientPanel() 62 float[] colors = value.getColors(); in GradientPanel() local 63 for (int i = 0; i < colors.length;) { in GradientPanel() 64 float r = colors[i++]; in GradientPanel() 65 float g = colors[i++]; in GradientPanel() 66 float b = colors[i++]; in GradientPanel() 67 gradientEditor.colors.add(new Color(r, g, b)); in GradientPanel() 69 if (gradientEditor.colors.isEmpty() || gradientEditor.percentages.isEmpty()) { in GradientPanel() 73 gradientEditor.colors.clear(); in GradientPanel() 74 gradientEditor.colors.add(Color.white); in GradientPanel() [all …]
|
/external/ImageMagick/coders/ |
D | xwd.c | 196 *colors; in ReadXWDImage() local 318 colors=(XColor *) NULL; in ReadXWDImage() 325 colors=(XColor *) AcquireQuantumMemory(length,sizeof(*colors)); in ReadXWDImage() 326 if (colors == (XColor *) NULL) in ReadXWDImage() 339 colors[i].pixel=color.pixel; in ReadXWDImage() 340 colors[i].red=color.red; in ReadXWDImage() 341 colors[i].green=color.green; in ReadXWDImage() 342 colors[i].blue=color.blue; in ReadXWDImage() 343 colors[i].flags=(char) color.flags; in ReadXWDImage() 354 MSBOrderLong((unsigned char *) &colors[i].pixel, in ReadXWDImage() [all …]
|
D | dps.c | 133 *colors; in ReadDPSImage() local 256 colors=(XColor *) AcquireQuantumMemory(visual_info->colormap_size, in ReadDPSImage() 257 sizeof(*colors)); in ReadDPSImage() 258 if (colors == (XColor *) NULL) in ReadDPSImage() 269 colors[i].pixel=(size_t) i; in ReadDPSImage() 270 colors[i].pad=0; in ReadDPSImage() 293 colors[i].pixel=red | green | blue; in ReadDPSImage() 294 colors[i].pad=0; in ReadDPSImage() 307 colors,visual_info->colormap_size); in ReadDPSImage() 378 SetPixelRed(image,ScaleShortToQuantum(colors[index].red),q); in ReadDPSImage() [all …]
|
D | map.c | 167 packet_size=(size_t) (image->colors > 256 ? 6UL : 3UL); in ReadMAPImage() 168 colormap=(unsigned char *) AcquireQuantumMemory(image->colors,packet_size* in ReadMAPImage() 176 count=ReadBlob(image,packet_size*image->colors,colormap); in ReadMAPImage() 177 if (count != (ssize_t) (packet_size*image->colors)) in ReadMAPImage() 181 for (i=0; i < (ssize_t) image->colors; i++) in ReadMAPImage() 188 for (i=0; i < (ssize_t) image->colors; i++) in ReadMAPImage() 226 if (image->colors > 256) in ReadMAPImage() 389 packet_size=(size_t) (image->colors > 256 ? 6UL : 3UL); in WriteMAPImage() 390 colormap=(unsigned char *) AcquireQuantumMemory(image->colors,packet_size* in WriteMAPImage() 400 for (i=0; i < (ssize_t) image->colors; i++) in WriteMAPImage() [all …]
|
/external/skia/include/effects/ |
D | SkGradientShader.h | 46 const SkColor colors[], const SkScalar pos[], int count, 51 const SkColor colors[], const SkScalar pos[], int count, in CreateLinear() argument 53 return CreateLinear(pts, colors, pos, count, mode, 0, NULL); in CreateLinear() 73 const SkColor colors[], const SkScalar pos[], int count, 78 const SkColor colors[], const SkScalar pos[], int count, in CreateRadial() argument 80 return CreateRadial(center, radius, colors, pos, count, mode, 0, NULL); in CreateRadial() 91 const SkColor colors[], const SkScalar pos[], int count, 97 const SkColor colors[], const SkScalar pos[], int count, in CreateTwoPointConical() argument 99 return CreateTwoPointConical(start, startRadius, end, endRadius, colors, pos, count, mode, in CreateTwoPointConical() 119 const SkColor colors[], const SkScalar pos[], int count, [all …]
|
/external/skia/tests/ |
D | ShaderOpacityTest.cpp | 59 SkColor colors[2]; in test_gradient() local 65 colors[0] = SkColorSetARGB(0xFF, 0, 0, 0); in test_gradient() 66 colors[1] = SkColorSetARGB(0xFF, 0, 0, 0); in test_gradient() 67 SkShader* grad = SkGradientShader::CreateLinear(pts, colors, pos, count, in test_gradient() 74 colors[0] = SkColorSetARGB(0, 0, 0, 0); in test_gradient() 75 colors[1] = SkColorSetARGB(0, 0, 0, 0); in test_gradient() 76 grad = SkGradientShader::CreateLinear(pts, colors, pos, count, mode); in test_gradient() 82 colors[0] = SkColorSetARGB(0xFF, 0, 0, 0); in test_gradient() 83 colors[1] = SkColorSetARGB(0x40, 0, 0, 0); in test_gradient() 84 grad = SkGradientShader::CreateLinear(pts, colors, pos, count, mode); in test_gradient() [all …]
|
/external/skia/samplecode/ |
D | SampleShaders.cpp | 27 SkColor colors[2]; in make_bitmapfade() local 31 colors[0] = SK_ColorBLACK; in make_bitmapfade() 32 colors[1] = SkColorSetARGB(0, 0, 0, 0); in make_bitmapfade() 33 …SkShader* shaderA = SkGradientShader::CreateLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileM… in make_bitmapfade() 57 SkColor colors[2]; in ShaderView() local 61 colors[0] = SK_ColorRED; in ShaderView() 62 colors[1] = SK_ColorBLUE; in ShaderView() 63 …SkShader* shaderA = SkGradientShader::CreateLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileM… in ShaderView() 67 colors[0] = SK_ColorBLACK; in ShaderView() 68 colors[1] = SkColorSetARGB(0x80, 0, 0, 0); in ShaderView() [all …]
|
/external/skia/src/images/ |
D | SkImageDecoder_libico.cpp | 48 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 51 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 54 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 57 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 60 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 175 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) = nullptr; in onDecode() 220 SkPMColor* colors = nullptr; in onDecode() local 224 colors = new SkPMColor[colorCount]; in onDecode() 231 colors[j] = SkPackARGB32(0xFF, red & 0xFF, green & 0xFF, blue & 0xFF); in onDecode() 256 delete[] colors; in onDecode() [all …]
|
/external/ImageMagick/MagickCore/ |
D | colormap.c | 105 const size_t colors,ExceptionInfo *exception) in AcquireImageColormap() argument 117 image->colors=MagickMax(colors,1); in AcquireImageColormap() 119 image->colormap=(PixelInfo *) AcquireQuantumMemory(image->colors, in AcquireImageColormap() 123 image->colors,sizeof(*image->colormap)); in AcquireImageColormap() 126 image->colors=0; in AcquireImageColormap() 131 for (i=0; i < (ssize_t) image->colors; i++) in AcquireImageColormap() 136 pixel=(double) (i*(QuantumRange/MagickMax(colors-1,1))); in AcquireImageColormap() 224 index=(ssize_t) (GetPixelIndex(image,q)+displace) % image->colors; in CycleColormapImage() 226 index+=(ssize_t) image->colors; in CycleColormapImage() 316 pixels=(unsigned short *) AcquireQuantumMemory((size_t) image->colors, in SortColormapByIntensity() [all …]
|
/external/libpng/contrib/libtests/ |
D | makepng.c | 207 image_size_of_type(int color_type, int bit_depth, unsigned int *colors, in image_size_of_type() argument 210 if (*colors) in image_size_of_type() 250 png_const_bytep gamma_table, unsigned int *colors) in generate_palette() argument 261 switch (colors[0]) in generate_palette() 265 colors[0]); in generate_palette() 269 set_color(palette+0, trans+0, colors[1], colors[1], colors[1], 255, in generate_palette() 274 set_color(palette+0, trans+0, colors[1], colors[1], colors[1], in generate_palette() 275 colors[2], gamma_table); in generate_palette() 279 set_color(palette+0, trans+0, colors[1], colors[2], colors[3], 255, in generate_palette() 284 set_color(palette+0, trans+0, colors[1], colors[2], colors[3], in generate_palette() [all …]
|
/external/chromium-trace/catapult/third_party/graphy/graphy/ |
D | pie_chart.py | 74 def __init__(self, points=None, labels=None, colors=None): argument 95 self.AddPie(points, labels, colors) 97 def AddPie(self, points, labels=None, colors=None): argument 108 num_colors = len(colors or []) 118 color = colors[i] 122 def AddSegments(self, points, labels, colors): argument 126 num_colors = len(colors or []) 132 color = colors[i] 171 def SetColors(self, *colors): argument 178 self._colors = colors
|
/external/skia/src/utils/ |
D | SkPatchGrid.cpp | 32 bool SkPatchGrid::setPatch(int x, int y, const SkPoint cubics[12], const SkColor colors[4], in setPatch() 62 if ((fModeFlags & kColors_VertexType) && colors) { in setPatch() 63 fCornerColors[cornerPos] = colors[0]; in setPatch() 64 fCornerColors[cornerPos + 1] = colors[1]; in setPatch() 65 fCornerColors[cornerPos + (fCols + 1)] = colors[3]; in setPatch() 66 fCornerColors[cornerPos + (fCols + 1) + 1] = colors[2]; in setPatch() 79 bool SkPatchGrid::getPatch(int x, int y, SkPoint cubics[12], SkColor colors[4], in getPatch() 105 if ((fModeFlags & kColors_VertexType) && colors) { in getPatch() 106 colors[0] = fCornerColors[cornerPos]; in getPatch() 107 colors[1] = fCornerColors[cornerPos + 1]; in getPatch() [all …]
|
/external/skia/src/opts/ |
D | SkBitmapProcState_opts_SSSE3.cpp | 395 int count, uint32_t* colors) { in S32_generic_D32_filter_DX_SSSE3() argument 396 SkASSERT(count > 0 && colors != nullptr); in S32_generic_D32_filter_DX_SSSE3() 467 _mm_storeu_si128(reinterpret_cast<__m128i *>(colors), sum0); in S32_generic_D32_filter_DX_SSSE3() 469 colors += 4; in S32_generic_D32_filter_DX_SSSE3() 494 *colors++ = _mm_cvtsi128_si32(sum); in S32_generic_D32_filter_DX_SSSE3() 541 _mm_storeu_si128(reinterpret_cast<__m128i *>(colors), sum0); in S32_generic_D32_filter_DX_SSSE3() 543 colors += 4; in S32_generic_D32_filter_DX_SSSE3() 575 *colors++ = _mm_cvtsi128_si32(sum0); in S32_generic_D32_filter_DX_SSSE3() 587 int count, uint32_t* colors) { in S32_generic_D32_filter_DXDY_SSSE3() argument 588 SkASSERT(count > 0 && colors != nullptr); in S32_generic_D32_filter_DXDY_SSSE3() [all …]
|
/external/chromium-trace/catapult/third_party/Paste/paste/util/ |
D | PySourceColor.py | 749 path2stdout(input, colors=colorscheme, markup=markup, 760 str2stdout(sys.stdin.read(), colors=colorscheme, 775 pageconvert(input, out=output, colors=colorscheme, 779 convert(source=input, outdir=output, colors=colorscheme, 867 str2file(teststr, htmlPath, colors=dark, markup='xhtml', 871 str2file(teststr, htmlPath, colors=dark, markup='xhtml', 882 def str2stdout(sourcestring, colors=None, title='', markup='html', argument 890 Parser(sourcestring, colors=colors, title=title, markup=markup, 894 def path2stdout(sourcepath, title='', colors=None, markup='html', argument 903 Parser(sourcestring, colors=colors, title=sourcepath, [all …]
|
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/blending/ |
D | TextureBlenderDDS.java | 47 TexturePixel[] colors = new TexturePixel[] { new TexturePixel(), new TexturePixel() }; in blend() local 60 colors[0].fromARGB8(col0); in blend() 61 colors[1].fromARGB8(col1); in blend() 71 for (int i = 0; i < colors.length; ++i) { in blend() 73 colors[i].negate(); in blend() 75 colors[i].toRGBA(pixelColor); in blend() 77 colors[i].fromARGB8(1, resultPixel[0], resultPixel[1], resultPixel[2]); in blend() 78 int argb8 = colors[i].toARGB8(); in blend()
|
/external/ImageMagick/Magick++/tests/ |
D | test_image_anim.miff | 2 class=PseudoClass colors=2 matte=False 10 class=PseudoClass colors=2 matte=False 17 class=PseudoClass colors=2 matte=False 24 class=PseudoClass colors=2 matte=False 31 class=PseudoClass colors=2 matte=False 38 class=PseudoClass colors=4 matte=False
|
/external/libdrm/tests/kms/ |
D | kms-universal-planes.c | 62 uint32_t colors[2]; in prepare_framebuffer() local 72 colors[0] = 0xffff0000; in prepare_framebuffer() 73 colors[1] = 0xff0000ff; in prepare_framebuffer() 79 colors[0] = 0xff0000ff; in prepare_framebuffer() 80 colors[1] = 0xffff0000; in prepare_framebuffer() 86 colors[0] = 0xff0000ff; in prepare_framebuffer() 87 colors[1] = 0x0000ffff; in prepare_framebuffer() 91 colors[0] = 0xffffffff; in prepare_framebuffer() 92 colors[1] = 0xffffffff; in prepare_framebuffer() 113 *buf++ = colors[color & 1]; in prepare_framebuffer()
|
/external/selinux/policycoreutils/mcstrans/share/util/ |
D | mlscolor-test | 26 rc, colors = selinux_raw_context_to_color(raw) 31 colors = colors.rstrip() 32 if colors != expected: 33 print "For '%s' got\n\t'%s' expected\n\t'%s'" % (context, colors, expected)
|