/external/python/cpython2/Demo/turtle/ |
tdemo_paint.py | 33 global colors 34 colors = colors[1:]+colors[:1] 35 color(colors[0]) 38 global colors 43 colors=["red", "green", "blue", "yellow"] 44 color(colors[0])
|
/external/skia/src/opts/ |
SkBitmapProcState_opts_SSSE3.h | 15 int count, uint32_t* colors); 18 int count, uint32_t* colors); 21 int count, uint32_t* colors); 24 int count, uint32_t* colors);
|
/external/skia/gm/ |
radial_gradient_precision.cpp | 15 SkColor colors[] = {SK_ColorBLACK, SK_ColorWHITE}; local 19 colors, nullptr, SK_ARRAY_COUNT(colors),
|
verylargebitmap.cpp | 15 static void draw(SkCanvas* canvas, int width, int height, SkColor colors[2]) { 19 paint.setShader(SkGradientShader::MakeRadial(center, radius, colors, nullptr, 2, 25 static sk_sp<SkImage> make_raster_image(int width, int height, SkColor colors[2]) { 27 draw(surface->getCanvas(), width, height, colors); 31 static sk_sp<SkImage> make_picture_image(int width, int height, SkColor colors[2]) { 33 draw(recorder.beginRecording(SkRect::MakeIWH(width, height)), width, height, colors); 40 typedef sk_sp<SkImage> (*ImageMakerProc)(int width, int height, SkColor colors[2]); 42 static void show_image(SkCanvas* canvas, int width, int height, SkColor colors[2], 44 sk_sp<SkImage> image(proc(width, height, colors)); 95 SkColor colors[2] variable [all...] |
bug6643.cpp | 13 SkColor colors[] = { SK_ColorTRANSPARENT, SK_ColorGREEN, SK_ColorTRANSPARENT }; local 17 p.setShader(SkGradientShader::MakeSweep(100, 100, colors, nullptr, SK_ARRAY_COUNT(colors),
|
shallowgradient.cpp | 14 static sk_sp<SkShader> shader_linear(const SkColor colors[], int count, const SkSize& size) { 16 return SkGradientShader::MakeLinear(pts, colors, nullptr, count, SkShader::kClamp_TileMode); 19 static sk_sp<SkShader> shader_radial(const SkColor colors[], int count, const SkSize& size) { 21 return SkGradientShader::MakeRadial(center, size.width()/2, colors, nullptr, count, 25 static sk_sp<SkShader> shader_conical(const SkColor colors[], int count, const SkSize& size) { 28 colors, nullptr, count, SkShader::kClamp_TileMode); 31 static sk_sp<SkShader> shader_sweep(const SkColor colors[], int count, const SkSize& size) { 32 return SkGradientShader::MakeSweep(size.width()/2, size.height()/2, colors, nullptr, count); 54 const SkColor colors[] = { sk_tool_utils::color_to_565(0xFF555555), variable 56 const int colorCount = SK_ARRAY_COUNT(colors); [all...] |
/external/python/cpython2/Demo/tkinter/ttk/ |
plastik_theme.py | 29 colors = { variable 52 {"background": colors['frame'], 53 "troughcolor": colors['frame'], 54 "selectbackground": colors['selectbg'], 55 "selectforeground": colors['selectfg'], 56 "fieldbackground": colors['frame'], 59 "map": {"foreground": [("disabled", colors['disabledfg'])]}
|
/frameworks/base/core/java/android/app/ |
IWallpaperManagerCallback.aidl | 35 * Called when wallpaper colors change 37 void onWallpaperColorsChanged(in WallpaperColors colors, int which, int userId);
|
/external/skia/src/core/ |
SkColorTable.cpp | 15 void SkColorTable::init(const SkPMColor colors[], int count) { 21 memcpy(fColors, colors, count * sizeof(SkPMColor)); 24 SkColorTable::SkColorTable(const SkPMColor colors[], int count) { 25 SkASSERT(0 == count || colors); 27 this->init(colors, count); 30 SkColorTable::SkColorTable(SkPMColor* colors, int count, AllocatedWithMalloc) 31 : fColors(colors) 35 SkASSERT(colors); 55 sk_sp<SkColorTable> SkColorTable::Make(const SkPMColor colors[], int count) { 59 if (count && !colors) { [all...] |
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) { 27 SkASSERT(count > 0 && colors != nullptr); 45 *colors++ = RETURNDST(src); 51 *colors++ = RETURNDST(src); 58 *colors++ = RETURNDST(src); 68 int count, SkPMColor* SK_RESTRICT colors) { [all...] |
/external/selinux/mcstrans/share/util/ |
mlscolor-test | 26 rc, colors = selinux_raw_context_to_color(raw) 28 print "Unable to get colors for '%s'" % (context) 31 colors = colors.rstrip() 32 if colors != expected: 33 print "For '%s' got\n\t'%s' expected\n\t'%s'" % (context, colors, expected)
|
/external/skia/tests/ |
ShaderOpacityTest.cpp | 53 SkColor colors[2]; local 59 colors[0] = SkColorSetARGB(0xFF, 0, 0, 0); 60 colors[1] = SkColorSetARGB(0xFF, 0, 0, 0); 61 auto grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode); 66 colors[0] = SkColorSetARGB(0, 0, 0, 0); 67 colors[1] = SkColorSetARGB(0, 0, 0, 0); 68 grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode); 73 colors[0] = SkColorSetARGB(0xFF, 0, 0, 0); 74 colors[1] = SkColorSetARGB(0x40, 0, 0, 0); 75 grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode) [all...] |
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/colorextraction/ |
SysuiColorExtractorTests.java | 51 ColorExtractor.GradientColors colors = new ColorExtractor.GradientColors(); local 52 colors.setMainColor(Color.RED); 53 colors.setSecondaryColor(Color.RED); 55 SysuiColorExtractor extractor = getTestableExtractor(colors); 71 ColorExtractor.GradientColors colors = new ColorExtractor.GradientColors(); local 72 colors.setMainColor(Color.RED); 73 colors.setSecondaryColor(Color.RED); 75 SysuiColorExtractor extractor = getTestableExtractor(colors); 81 assertEquals("Not using extracted colors!", 82 extractor.getColors(which, type), colors); [all...] |
/external/trappy/trappy/plotter/ |
AttrConf.py | 98 colors = ['#348ABD', '#7A68A6', '#A60628', '#467821', '#CF4457', '#188487', variable 101 MPL_STYLE['axes.color_cycle'] = colors 103 MPL_STYLE['axes.prop_cycle'] = matplotlib.cycler("color", colors)
|
/external/skia/include/c/ |
sk_shader.h | 32 @param colors The array[count] of colors, to be distributed between 36 in the colors array. If this is NULL, the the 37 colors are distributed evenly between the start 41 @param colorCount Must be >=2. The number of colors (and pos if not 46 const sk_color_t colors[], 60 @param colors The array[count] of colors, to be distributed 63 position of each corresponding color in the colors 64 array. If this is NULL, the the colors ar [all...] |
/external/skia/include/core/ |
SkColorTable.h | 20 SkColorTable holds an array SkPMColors (premultiplied 32-bit colors) used by 27 static sk_sp<SkColorTable> Make(const SkPMColor colors[], int count); 29 /** Copy up to 256 colors into a new SkColorTable. 31 SkColorTable(const SkPMColor colors[], int count); 34 /** Returns the number of colors in the table. 46 /** Return the array of colors for reading. 50 /** read16BitCache() returns the array of RGB16 colors that mirror the 32bit colors. 63 // assumes ownership of colors (assumes it was allocated w/ malloc) 64 SkColorTable(SkPMColor* colors, int count, AllocatedWithMalloc) [all...] |
/external/skia/src/effects/ |
SkOverdrawColorFilter.h | 26 static sk_sp<SkOverdrawColorFilter> Make(const SkPMColor colors[kNumColors]) { 27 return sk_sp<SkOverdrawColorFilter>(new SkOverdrawColorFilter(colors)); 44 SkOverdrawColorFilter(const SkPMColor colors[kNumColors]) { 45 memcpy(fColors, colors, kNumColors * sizeof(SkPMColor));
|
SkOverdrawColorFilter.cpp | 20 const SkPMColor* colors; member in struct:Ctx 24 ctx->colors = fColors; 33 pixels[i] = SkPM4f::FromPMColor(ctx->colors[alpha]); 52 SkPMColor colors[kNumColors]; local 54 if (!buffer.validate(size == sizeof(colors))) { 57 if (!buffer.readByteArray(colors, sizeof(colors))) { 61 return SkOverdrawColorFilter::Make(colors); 76 static sk_sp<GrFragmentProcessor> Make(const SkPMColor* colors); 84 OverdrawFragmentProcessor(const GrColor4f* colors); [all...] |
/external/skia/samplecode/ |
SampleShaders.cpp | 25 SkColor colors[2]; local 29 colors[0] = SK_ColorBLACK; 30 colors[1] = SkColorSetARGB(0, 0, 0, 0); 31 auto shaderA = SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode); 48 SkColor colors[2]; local 52 colors[0] = SK_ColorRED; 53 colors[1] = SK_ColorBLUE; 54 auto shaderA = SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode); 58 colors[0] = SK_ColorBLACK; 59 colors[1] = SkColorSetARGB(0x80, 0, 0, 0) [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
WallpaperManagerCompatVOMR1.java | 58 public void onColorsChanged(WallpaperColors colors, int which) { 59 listener.onColorsChanged(convertColorsObject(colors), which); 65 private WallpaperColorsCompat convertColorsObject(WallpaperColors colors) { 66 if (colors == null) { 69 Color primary = colors.getPrimaryColor(); 70 Color secondary = colors.getSecondaryColor(); 71 Color tertiary = colors.getTertiaryColor(); 78 colorHints = (Integer) mWCColorHintsMethod.invoke(colors);
|
/external/skia/include/effects/ |
SkGradientShader.h | 21 /** By default gradients will interpolate their colors in unpremul space 23 * gradients will premultiply their colors first, and then interpolate 32 @param colors The array[count] of colors, to be distributed between the two points 34 each corresponding color in the colors array. If this is NULL, 35 the the colors are distributed evenly between the start and end point. 38 @param count Must be >=2. The number of colors (and pos if not NULL) entries. 42 const SkColor colors[], const SkScalar pos[], int count, 46 const SkColor colors[], const SkScalar pos[], int count, 48 return MakeLinear(pts, colors, pos, count, mode, 0, NULL) [all...] |
/frameworks/base/libs/hwui/ |
GradientCache.h | 39 colors = nullptr; 43 GradientCacheEntry(uint32_t* colors, float* positions, uint32_t count) { 44 copy(colors, positions, count); 48 copy(entry.colors.get(), entry.positions.get(), entry.count); 53 copy(entry.colors.get(), entry.positions.get(), entry.count); 71 std::unique_ptr<uint32_t[]> colors; member in struct:android::uirenderer::GradientCacheEntry 76 void copy(uint32_t* colors, float* positions, uint32_t count) { 78 this->colors.reset(new uint32_t[count]); 81 memcpy(this->colors.get(), colors, count * sizeof(uint32_t)) [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
SweepGradientTest.java | 63 final int[] colors = new int[] { Color.GREEN, Color.RED }; local 65 Shader shader = new SweepGradient(CENTER, CENTER, colors[0], colors[1]); 68 verifyColors(colors, positions, TOLERANCE); 73 final int[] colors = new int[] { Color.GREEN, Color.RED, Color.BLUE }; local 75 Shader shader = new SweepGradient(CENTER, CENTER, colors, positions); 79 verifyColors(colors, positions, TOLERANCE); 84 final int[] colors = new int[] { Color.GREEN, Color.RED, Color.BLUE, Color.GREEN }; local 87 Shader shader = new SweepGradient(CENTER, CENTER, colors, positions); 91 verifyColors(colors, positions, TOLERANCE) [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
GradientStopsActivity.java | 45 int[] colors = new int[] { 0xffff0000, 0xff0000ff }; local 48 colors, positions, Shader.TileMode.CLAMP); 55 colors = new int[] { 0xffff0000, 0xff0000ff, 0xff00ff00 }; 58 colors, positions, Shader.TileMode.CLAMP); 65 colors = new int[] { 0xffff0000, 0xff0000ff, 0xff00ff00 }; 68 colors, positions, Shader.TileMode.CLAMP); 75 colors = new int[] { 0xff000000, 0xffffffff }; 77 colors, null, Shader.TileMode.CLAMP); 85 colors, null, Shader.TileMode.REPEAT); 93 colors, null, Shader.TileMode.MIRROR) [all...] |
/external/skia/fuzz/ |
FuzzGradients.cpp | 26 void initGradientParams(Fuzz* fuzz, std::vector<SkColor>* colors, 37 colors->clear(); 43 colors->push_back(c); 67 const std::vector<SkColor>& colors, 80 SkDebugf(" colors:\t[ "); 81 for (auto color : colors) { 112 std::vector<SkColor> colors; local 115 initGradientParams(fuzz, &colors, &pos, &mode); 125 p.setShader(SkGradientShader::MakeLinear(pts, colors.data(), pos.data(), 126 colors.size(), mode, flags, localMatrix.getMaybeNull())) 150 std::vector<SkColor> colors; local 188 std::vector<SkColor> colors; local 222 std::vector<SkColor> colors; local [all...] |