Home
last modified time | relevance | path

Searched refs:colors (Results 1 – 25 of 1116) sorted by relevance

12345678910>>...45

/third_party/node/deps/npm/node_modules/@colors/colors/examples/
Dsafe-string.js1 var colors = require('../safe'); variable
3 console.log(colors.yellow('First some yellow text'));
5 console.log(colors.yellow.underline('Underline that text'));
7 console.log(colors.red.bold('Make it bold and red'));
9 console.log(colors.rainbow('Double Raindows All Day Long'));
11 console.log(colors.trap('Drop the bass'));
13 console.log(colors.rainbow(colors.trap('DROP THE RAINBOW BASS')));
16 console.log(colors.bold.italic.underline.red('Chains are also cool.'));
19 console.log(colors.green('So ') + colors.underline('are') + ' '
20 + colors.inverse('inverse') + colors.yellow.bold(' styles! '));
[all …]
/third_party/node/deps/npm/node_modules/@colors/colors/lib/
Dcolors.js31 var colors = {}; variable
32 module['exports'] = colors;
34 colors.themes = {};
37 var ansiStyles = colors.styles = require('./styles');
41 colors.supportsColor = require('./system/supports-colors').supportsColor;
43 if (typeof colors.enabled === 'undefined') {
44 colors.enabled = colors.supportsColor() !== false;
47 colors.enable = function() {
48 colors.enabled = true;
51 colors.disable = function() {
[all …]
DextendStringPrototype.js1 var colors = require('./colors'); variable
12 return colors.strip(this);
16 return colors.strip(this);
20 return colors.trap(this);
24 return colors.zalgo(this);
28 return colors.zebra(this);
32 return colors.rainbow(this);
36 return colors.random(this);
40 return colors.america(this);
46 var x = Object.keys(colors.styles);
[all …]
/third_party/skia/third_party/externals/harfbuzz/test/api/
Dtest-ot-color.c106 #define assert_color_rgba(colors, i, r, g, b, a) G_STMT_START { \ argument
107 const hb_color_t *_colors = (colors); \
120 "colors[" #i "]", colors[_i], "==", blue, 'x'); \
213 hb_color_t *colors = (hb_color_t*) malloc (num_colors * sizeof (hb_color_t)); in test_hb_ot_color_palette_get_colors_v0() local
214 size_t colors_size = num_colors * sizeof(*colors); in test_hb_ot_color_palette_get_colors_v0()
218 g_assert_cmpint (hb_ot_color_palette_get_colors (cpal_v0, 0, 0, &num_colors, colors), ==, 2); in test_hb_ot_color_palette_get_colors_v0()
220 assert_color_rgba (colors, 0, 0x00, 0x00, 0x00, 0xff); in test_hb_ot_color_palette_get_colors_v0()
221 assert_color_rgba (colors, 1, 0x66, 0xcc, 0xff, 0xff); in test_hb_ot_color_palette_get_colors_v0()
224 g_assert_cmpint (hb_ot_color_palette_get_colors (cpal_v0, 1, 0, &num_colors, colors), ==, 2); in test_hb_ot_color_palette_get_colors_v0()
226 assert_color_rgba (colors, 0, 0x00, 0x00, 0x00, 0xff); in test_hb_ot_color_palette_get_colors_v0()
[all …]
/third_party/mesa3d/src/freedreno/rnn/
Drnndec.c38 res->colors = &envy_null_colors; in rnndec_newcontext()
189 asprintf (&res, "%s%s%s", ctx->colors->eval, ctmp, ctx->colors->reset); in rnndec_decodeval()
215 ctx->colors->err : ctx->colors->mod; in rnndec_decodeval()
218 asprintf (&res, "%s%s%s", color, bitfields[i]->name, ctx->colors->reset); in rnndec_decodeval()
220 asprintf (&tmp, "%s | %s%s%s", res, color, bitfields[i]->name, ctx->colors->reset); in rnndec_decodeval()
232 asprintf (&subval, "%s%#"PRIx64"%s", ctx->colors->err, field_val, ctx->colors->reset); in rnndec_decodeval()
237 …asprintf (&res, "%s%s%s = %s", ctx->colors->rname, bitfields[i]->name, ctx->colors->reset, subval); in rnndec_decodeval()
239 …asprintf (&tmp, "%s | %s%s%s = %s", res, ctx->colors->rname, bitfields[i]->name, ctx->colors->rese… in rnndec_decodeval()
247 asprintf (&res, "%s%#"PRIx64"%s", ctx->colors->err, value & ~mask, ctx->colors->reset); in rnndec_decodeval()
249 … asprintf (&tmp, "%s | %s%#"PRIx64"%s", res, ctx->colors->err, value & ~mask, ctx->colors->reset); in rnndec_decodeval()
[all …]
/third_party/skia/platform_tools/android/apps/AndroidKit/src/main/java/org/skia/androidkit/
DGradient.java15 long make(float[] colors, float[] pos, int tileMode, long nativeLocalMatrix); in make() argument
18 protected Gradient(int[] colors, float[] pos, TileMode tm, Matrix lm, in Gradient() argument
20 super(makeGradient(colors, pos, tm, lm, gf)); in Gradient()
23 protected Gradient(float[] colors, float[] pos, TileMode tm, Matrix lm, in Gradient() argument
25 super(makeGradient(colors, pos, tm, lm, gf)); in Gradient()
28 private static long makeGradient(int[] colors, float[] pos, TileMode tm, Matrix lm, in makeGradient() argument
30 if (colors.length != pos.length) { in makeGradient()
34 float[] fcolors = new float[colors.length * 4]; in makeGradient()
36 for (int i = 0; i < colors.length; ++i) { in makeGradient()
37 fcolors[4*i + 0] = ((colors[i] >> 16) & 0xff) / 255.0f; in makeGradient()
[all …]
DSweepGradient.java15 int[] colors, float[] pos, TileMode tm, in SweepGradient() argument
17 super(colors, pos, tm, localMatrix, in SweepGradient()
22 int[] colors, float[] pos, TileMode tm) throws IllegalArgumentException { in SweepGradient() argument
23 this(x, y, startAngle, endAngle, colors, pos, tm, null); in SweepGradient()
26 public SweepGradient(float x, float y, int[] colors, in SweepGradient() argument
28 this(x, y, 0, 360, colors, pos, TileMode.CLAMP, null); in SweepGradient()
32 float[] colors, float[] pos, TileMode tm, in SweepGradient() argument
34 super(colors, pos, tm, localMatrix, in SweepGradient()
39 float[] colors, float[] pos, TileMode tm) throws IllegalArgumentException { in SweepGradient() argument
40 this(x, y, startAngle, endAngle, colors, pos, tm, null); in SweepGradient()
[all …]
DRadialGradient.java14 public RadialGradient(float x, float y, float r, int[] colors, float[] pos, TileMode tm, in RadialGradient() argument
16 super(colors, pos, tm, localMatrix, in RadialGradient()
20 public RadialGradient(float x, float y, float r, int[] colors, in RadialGradient() argument
22 this(x, y, r, colors, pos, tm, null); in RadialGradient()
25 public RadialGradient(float x, float y, float r, float[] colors, float[] pos, TileMode tm, in RadialGradient() argument
27 super(colors, pos, tm, localMatrix, in RadialGradient()
31 public RadialGradient(float x, float y, float r, float[] colors, in RadialGradient() argument
33 this(x, y, r, colors, pos, tm, null); in RadialGradient()
36 private static native long nMakeRadial(float x, float y, float r, float[] colors, float[] pos, in nMakeRadial() argument
DLinearGradient.java14 public LinearGradient(float x0, float y0, float x1, float y1, int[] colors, in LinearGradient() argument
17 super(colors, pos, tm, localMatrix, in LinearGradient()
21 public LinearGradient(float x0, float y0, float x1, float y1, int[] colors, in LinearGradient() argument
23 this(x0, y0, x1, y1, colors, pos, tm, null); in LinearGradient()
26 public LinearGradient(float x0, float y0, float x1, float y1, float[] colors, in LinearGradient() argument
29 super(colors, pos, tm, localMatrix, in LinearGradient()
33 public LinearGradient(float x0, float y0, float x1, float y1, float[] colors, in LinearGradient() argument
35 this(x0, y0, x1, y1, colors, pos, tm, null); in LinearGradient()
39 float[] colors, float[] pos, int tilemode, in nMakeLinear() argument
/third_party/skia/include/effects/
DSkGradientShader.h74 const SkColor colors[], const SkScalar pos[], int count,
78 const SkColor colors[], const SkScalar pos[], int count, in MakeLinear() argument
80 return MakeLinear(pts, colors, pos, count, mode, 0, nullptr); in MakeLinear()
98 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace,
102 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, in MakeLinear() argument
104 return MakeLinear(pts, colors, std::move(colorSpace), pos, count, mode, 0, nullptr); in MakeLinear()
121 const SkColor colors[], const SkScalar pos[], int count,
125 const SkColor colors[], const SkScalar pos[], int count, in MakeRadial() argument
127 return MakeRadial(center, radius, colors, pos, count, mode, 0, nullptr); in MakeRadial()
144 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace,
[all …]
/third_party/skia/gm/
Dverylargebitmap.cpp28 static void draw(SkCanvas* canvas, int width, int height, SkColor colors[2]) { in draw()
32 paint.setShader(SkGradientShader::MakeRadial(center, radius, colors, nullptr, 2, in draw()
38 static sk_sp<SkImage> make_raster_image(int width, int height, SkColor colors[2]) { in make_raster_image()
40 draw(surface->getCanvas(), width, height, colors); in make_raster_image()
44 static sk_sp<SkImage> make_picture_image(int width, int height, SkColor colors[2]) { in make_picture_image()
46 draw(recorder.beginRecording(SkRect::MakeIWH(width, height)), width, height, colors); in make_picture_image()
53 typedef sk_sp<SkImage> (*ImageMakerProc)(int width, int height, SkColor colors[2]);
55 static void show_image(SkCanvas* canvas, int width, int height, SkColor colors[2], in show_image()
57 sk_sp<SkImage> image(proc(width, height, colors)); in show_image()
103 SkColor colors[2]; in onDraw() local
[all …]
Dpatch.cpp26 const SkColor colors[] = { in make_shader() local
32 return SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), in make_shader()
96 static void dopatch(SkCanvas* canvas, const SkColor colors[], sk_sp<SkImage> img, in dopatch() argument
133 canvas->drawPatch(gCubics, colors, nullptr, modes[y], paint); in dopatch()
142 canvas->drawPatch(gCubics, colors, tex, modes[y], paint); in dopatch()
157 const SkColor colors[SkPatchUtils::kNumCorners] = { variable
160 dopatch(canvas, colors, nullptr, nullptr);
163 const SkColor colors[SkPatchUtils::kNumCorners] = { variable
166 dopatch(canvas, colors, GetResourceAsImage("images/mandrill_128.png"), nullptr);
169 const SkColor colors[SkPatchUtils::kNumCorners] = { variable
[all …]
Dshallowgradient.cpp24 static sk_sp<SkShader> shader_linear(const SkColor colors[], int count, const SkSize& size) { in shader_linear() argument
26 return SkGradientShader::MakeLinear(pts, colors, nullptr, count, SkTileMode::kClamp); in shader_linear()
29 static sk_sp<SkShader> shader_radial(const SkColor colors[], int count, const SkSize& size) { in shader_radial() argument
31 return SkGradientShader::MakeRadial(center, size.width()/2, colors, nullptr, count, in shader_radial()
35 static sk_sp<SkShader> shader_conical(const SkColor colors[], int count, const SkSize& size) { in shader_conical() argument
38 colors, nullptr, count, SkTileMode::kClamp); in shader_conical()
41 static sk_sp<SkShader> shader_sweep(const SkColor colors[], int count, const SkSize& size) { in shader_sweep() argument
42 return SkGradientShader::MakeSweep(size.width()/2, size.height()/2, colors, nullptr, count); in shader_sweep()
62 const SkColor colors[] = { 0xFF555555, 0xFF444444 }; in onDraw() local
63 const int colorCount = SK_ARRAY_COUNT(colors); in onDraw()
[all …]
/third_party/skia/src/core/
DSkCompressedDataUtils.cpp101 IColor colors[2]; in decompress_etc1() local
104 colors[0].fR = extend_5To8bits(high >> 27); in decompress_etc1()
105 colors[1].fR = extend_5plus3To8Bits(high >> 27, high >> 24); in decompress_etc1()
106 colors[0].fG = extend_5To8bits(high >> 19); in decompress_etc1()
107 colors[1].fG = extend_5plus3To8Bits(high >> 19, high >> 16); in decompress_etc1()
108 colors[0].fB = extend_5To8bits(high >> 11); in decompress_etc1()
109 colors[1].fB = extend_5plus3To8Bits(high >> 11, high >> 8); in decompress_etc1()
111 colors[0].fR = extend_4To8bits(high >> 28); in decompress_etc1()
112 colors[1].fR = extend_4To8bits(high >> 24); in decompress_etc1()
113 colors[0].fG = extend_4To8bits(high >> 20); in decompress_etc1()
[all …]
/third_party/node/lib/internal/assert/
Dassertion_error.js24 const colors = require('internal/util/colors'); constant
107 const c = inspect.defaultOptions.colors;
169 actualLines[46] = `${colors.blue}...${colors.white}`;
182 end = `\n${colors.blue}...${colors.white}${end}`;
193 `\n${colors.green}+ actual${colors.white} ${colors.red}- expected${colors.white}`;
194 const skippedMsg = ` ${colors.blue}...${colors.white} Lines skipped`;
197 let plusMinus = `${colors.green}+${colors.white}`;
201 plusMinus = `${colors.red}-${colors.white}`;
216 res += `\n${colors.blue}...${colors.white}`;
272 res += `\n${colors.blue}...${colors.white}`;
[all …]
/third_party/skia/modules/sksg/src/
DSkSGGradient.cpp21 std::vector<SkColor4f> colors; in onRevalidateShader() local
23 colors.reserve(fColorStops.size()); in onRevalidateShader()
28 colors.push_back(stop.fColor); in onRevalidateShader()
34 return this->onMakeShader(colors, positions); in onRevalidateShader()
37 sk_sp<SkShader> LinearGradient::onMakeShader(const std::vector<SkColor4f>& colors, in onMakeShader() argument
39 SkASSERT(colors.size() == positions.size()); in onMakeShader()
42 return SkGradientShader::MakeLinear(pts, colors.data(), nullptr, positions.data(), in onMakeShader()
43 SkToInt(colors.size()), this->getTileMode()); in onMakeShader()
46 sk_sp<SkShader> RadialGradient::onMakeShader(const std::vector<SkColor4f>& colors, in onMakeShader() argument
48 SkASSERT(colors.size() == positions.size()); in onMakeShader()
[all …]
/third_party/skia/fuzz/
DFuzzGradients.cpp28 void initGradientParams(Fuzz* fuzz, std::vector<SkColor>* colors, in initGradientParams() argument
39 colors->clear(); in initGradientParams()
45 colors->push_back(c); in initGradientParams()
69 const std::vector<SkColor>& colors, in logLinearGradient() argument
83 for (auto color : colors) { in logLinearGradient()
114 std::vector<SkColor> colors; in fuzzLinearGradient() local
117 initGradientParams(fuzz, &colors, &pos, &mode); in fuzzLinearGradient()
127 p.setShader(SkGradientShader::MakeLinear(pts, colors.data(), pos.data(), in fuzzLinearGradient()
128 colors.size(), mode, flags, localMatrix.getMaybeNull())); in fuzzLinearGradient()
134 logLinearGradient(pts, colors, pos, mode, flags, localMatrix.getMaybeNull(), &gm); in fuzzLinearGradient()
[all …]
/third_party/ffmpeg/libavcodec/
Dmsvideo1.c103 unsigned char colors[8]; in msvideo1_decode_8bit() local
144 colors[0] = s->buf[stream_ptr++]; in msvideo1_decode_8bit()
145 colors[1] = s->buf[stream_ptr++]; in msvideo1_decode_8bit()
149 pixels[pixel_ptr++] = colors[(flags & 0x1) ^ 1]; in msvideo1_decode_8bit()
157 memcpy(colors, &s->buf[stream_ptr], 8); in msvideo1_decode_8bit()
163 colors[((pixel_y & 0x2) << 1) + in msvideo1_decode_8bit()
169 colors[0] = byte_a; in msvideo1_decode_8bit()
173 pixels[pixel_ptr++] = colors[0]; in msvideo1_decode_8bit()
203 unsigned short colors[8]; in msvideo1_decode_16bit() local
244 colors[0] = AV_RL16(&s->buf[stream_ptr]); in msvideo1_decode_16bit()
[all …]
/third_party/skia/tests/
DShaderOpacityTest.cpp53 SkColor colors[2]; in test_gradient() local
59 colors[0] = SkColorSetARGB(0xFF, 0, 0, 0); in test_gradient()
60 colors[1] = SkColorSetARGB(0xFF, 0, 0, 0); in test_gradient()
61 auto grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode); in test_gradient()
66 colors[0] = SkColorSetARGB(0, 0, 0, 0); in test_gradient()
67 colors[1] = SkColorSetARGB(0, 0, 0, 0); in test_gradient()
68 grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode); in test_gradient()
73 colors[0] = SkColorSetARGB(0xFF, 0, 0, 0); in test_gradient()
74 colors[1] = SkColorSetARGB(0x40, 0, 0, 0); in test_gradient()
75 grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode); in test_gradient()
[all …]
DRuntimeBlendTest.cpp37 std::vector<SkColor> colors; in test_blend() local
57 colors.push_back(bitmap.getColor(/*x=*/0, /*y=*/0)); in test_blend()
60 REPORTER_ASSERT(r, nearly_equal(colors[0], colors[1]), in test_blend()
65 SkColorGetA(colors[0]), in test_blend()
66 SkColorGetR(colors[0]), in test_blend()
67 SkColorGetG(colors[0]), in test_blend()
68 SkColorGetB(colors[0]), in test_blend()
69 SkColorGetA(colors[1]), in test_blend()
70 SkColorGetR(colors[1]), in test_blend()
71 SkColorGetG(colors[1]), in test_blend()
[all …]
/third_party/skia/src/shaders/gradients/
DSkGradientShader.cpp631 SkColor4fXformer::SkColor4fXformer(const SkColor4f* colors, int colorCount, in SkColor4fXformer() argument
633 fColors = colors; in SkColor4fXformer()
674 static bool valid_grad(const SkColor4f colors[], const SkScalar pos[], int count, in valid_grad() argument
676 return nullptr != colors && count >= 1 && (unsigned)tileMode < kSkTileModeCount; in valid_grad()
680 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, in desc_init() argument
685 desc->fColors = colors; in desc_init()
694 static SkColor4f average_gradient_color(const SkColor4f colors[], const SkScalar pos[], in average_gradient_color() argument
703 Sk4f c0 = Sk4f::Load(&colors[i]); in average_gradient_color()
704 Sk4f c1 = Sk4f::Load(&colors[i + 1]); in average_gradient_color()
721 Sk4f c = Sk4f::Load(&colors[0]); in average_gradient_color()
[all …]
/third_party/mesa3d/src/imgui/
Dimgui_draw.cpp177 ImVec4* colors = style->Colors; in StyleColorsDark() local
179 colors[ImGuiCol_Text] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f); in StyleColorsDark()
180 colors[ImGuiCol_TextDisabled] = ImVec4(0.50f, 0.50f, 0.50f, 1.00f); in StyleColorsDark()
181 colors[ImGuiCol_WindowBg] = ImVec4(0.06f, 0.06f, 0.06f, 0.94f); in StyleColorsDark()
182 colors[ImGuiCol_ChildBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); in StyleColorsDark()
183 colors[ImGuiCol_PopupBg] = ImVec4(0.08f, 0.08f, 0.08f, 0.94f); in StyleColorsDark()
184 colors[ImGuiCol_Border] = ImVec4(0.43f, 0.43f, 0.50f, 0.50f); in StyleColorsDark()
185 colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); in StyleColorsDark()
186 colors[ImGuiCol_FrameBg] = ImVec4(0.16f, 0.29f, 0.48f, 0.54f); in StyleColorsDark()
187 colors[ImGuiCol_FrameBgHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.40f); in StyleColorsDark()
[all …]
/third_party/python/Lib/turtledemo/
Dpaint.py33 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])
/third_party/mbedtls/tests/scripts/
Ddepends.py137 def set_config_option_value(conf, option, colors, value: Union[bool, str]): argument
142 log_line('Symbol {} was not found in {}'.format(option, conf.filename), color=colors.red)
156 def set_reference_config(conf, options, colors): argument
163 set_config_option_value(conf, 'MBEDTLS_TEST_HOOKS', colors, False)
165 set_config_option_value(conf, 'MBEDTLS_USE_PSA_CRYPTO', colors, False)
183 def announce(self, colors, what): argument
189 log_line(self.name + ' PASSED', color=colors.green)
191 log_line(self.name + ' FAILED', color=colors.red)
193 log_line('starting ' + self.name, color=colors.cyan)
195 def configure(self, conf, options, colors): argument
[all …]
/third_party/skia/third_party/externals/libpng/contrib/libtests/
Dmakepng.c207 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 …]

12345678910>>...45