Home
last modified time | relevance | path

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

12345678910>>...67

/third_party/node/deps/npm/node_modules/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/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/node/deps/npm/node_modules/ansicolors/test/
Dansicolors.js4 , colors = require('..') variable
5 , open = colors.open
6 , close = colors.close
10 assert.equal(colors.white('printed in white'), '\u001b[37mprinted in white\u001b[39m');
12 assert.equal(colors.black('printed in black'), '\u001b[30mprinted in black\u001b[39m');
13 assert.equal(colors.brightBlack('printed in bright black'), '\u001b[90mprinted in bright black\u001…
15 assert.equal(colors.green('printed in green'), '\u001b[32mprinted in green\u001b[39m');
16 assert.equal(colors.brightGreen('printed in bright green'), '\u001b[92mprinted in bright green\u001…
18 assert.equal(colors.red('printed in red'), '\u001b[31mprinted in red\u001b[39m');
19 assert.equal(colors.brightRed('printed in bright red'), '\u001b[91mprinted in bright red\u001b[39m'…
[all …]
/third_party/node/deps/npm/node_modules/colors/
DREADME.md1 # colors.js
2 …![Build Status](https://travis-ci.org/Marak/colors.js.svg?branch=master)](https://travis-ci.org/Ma…
3 [![version](https://img.shields.io/npm/v/colors.svg)](https://www.npmjs.org/package/colors)
4 [![dependencies](https://david-dm.org/Marak/colors.js.svg)](https://david-dm.org/Marak/colors.js)
5 …![devDependencies](https://david-dm.org/Marak/colors.js/dev-status.svg)](https://david-dm.org/Mara…
11 ![Demo](https://raw.githubusercontent.com/Marak/colors.js/master/screenshots/colors.png)
15 npm install colors
17 ## colors and styles!
19 ### text colors
32 ### background colors
[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/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/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 …]
/third_party/flutter/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*) alloca (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/flutter/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()
102 SkColor colors[2]; in onDraw() local
[all …]
/third_party/flutter/flutter/packages/flutter/test/painting/
Dgradient_test.dart14 colors: <Color>[
25 colors: <Color>[
37 colors: <Color>[
45 colors: <Color>[
55 colors: <Color>[
67 colors: <Color>[
79 colors: <Color>[
93 colors: <Color>[
106 test('LinearGradient lerp test with unequal number of colors', () {
108 colors: <Color>[
[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 …]
/third_party/flutter/skia/include/effects/
DSkGradientShader.h71 const SkColor colors[], const SkScalar pos[], int count,
75 const SkColor colors[], const SkScalar pos[], int count, in MakeLinear() argument
77 return MakeLinear(pts, colors, pos, count, mode, 0, nullptr); in MakeLinear()
93 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace,
97 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, in MakeLinear() argument
99 return MakeLinear(pts, colors, std::move(colorSpace), pos, count, mode, 0, nullptr); in MakeLinear()
116 const SkColor colors[], const SkScalar pos[], int count,
120 const SkColor colors[], const SkScalar pos[], int count, in MakeRadial() argument
122 return MakeRadial(center, radius, colors, pos, count, mode, 0, nullptr); in MakeRadial()
139 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace,
[all …]
/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/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/gstreamer/gstplugins_bad/gst/dvbsubenc/libimagequant/
Dnearest.c36 for (unsigned int j = 0; j < map->colors; j++) { in distance_from_nearest_other_color()
62 struct sorttmp *colors = g_alloca (sizeof (struct sorttmp) * map->colors); in build_head() local
68 for (i = 0; i < map->colors; i++) { in build_head()
71 colors[colorsused].index = i; in build_head()
72 colors[colorsused].radius = colordifference (px, map->palette[i].acolor); in build_head()
76 qsort (colors, colorsused, sizeof (colors[0]), compareradius); in build_head()
77 assert (colorsused < 2 || colors[0].radius <= colors[1].radius); // closest first in build_head()
89 h.candidates_color[i] = map->palette[colors[i].index].acolor; in build_head()
90 h.candidates_index[i] = colors[i].index; in build_head()
99 if (colors[i].radius < h.radius / 4.f - error_margin) { in build_head()
[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/flutter/skia/modules/sksg/src/
DSkSGGradient.cpp20 std::vector<SkColor> colors; in onRevalidateShader() local
22 colors.reserve(fColorStops.size()); in onRevalidateShader()
27 colors.push_back(stop.fColor); in onRevalidateShader()
33 return this->onMakeShader(colors, positions); in onRevalidateShader()
36 sk_sp<SkShader> LinearGradient::onMakeShader(const std::vector<SkColor>& colors, in onMakeShader() argument
38 SkASSERT(colors.size() == positions.size()); in onMakeShader()
41 return SkGradientShader::MakeLinear(pts, colors.data(), positions.data(), colors.size(), in onMakeShader()
45 sk_sp<SkShader> RadialGradient::onMakeShader(const std::vector<SkColor>& colors, in onMakeShader() argument
47 SkASSERT(colors.size() == positions.size()); in onMakeShader()
51 colors.data(), positions.data(), colors.size(), in onMakeShader()
[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/wayland-ivi-extension/ivi-layermanagement-examples/EGLWLMockNavigation/src/
DSky.cpp60 m_pShader->use(&m_position, colors); in render()
75 if (colors[0].r < 1.0) { in update()
76 colors[0].r += sunriseSpeed; in update()
77 colors[0].g += sunriseSpeed/2; in update()
79 colors[1].b += sunriseSpeed/4; in update()
80 colors[2].b += sunriseSpeed/4; in update()
82 colors[3].r += sunriseSpeed; in update()
83 colors[3].g += sunriseSpeed/2; in update()
95 if (colors[0].r > 0.0) { in update()
96 colors[0].r -= sunsetSpeed; in update()
[all …]
/third_party/flutter/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/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/node/deps/npm/node_modules/ansicolors/
DREADME.md14 var colors = require('ansicolors');
16 // foreground colors
17 var redHerring = colors.red('herring');
18 var blueMoon = colors.blue('moon');
19 var brighBlueMoon = colors.brightBlue('moon');
25 // background colors
26 console.log(colors.bgYellow('printed on yellow background'));
27 console.log(colors.bgBrightBlue('printed on bright blue background'));
29 // mixing background and foreground colors
31 console.log(colors.bgYellow(colors.blue('printed on yellow background in blue')));
[all …]
/third_party/flutter/engine/flutter/lib/ui/painting/
Dgradient.cc36 const tonic::Int32List& colors, in initLinear() argument
41 FML_DCHECK(colors.size() == color_stops.size() || in initLinear()
57 reinterpret_cast<const SkColor*>(colors.data()), color_stops.data(), in initLinear()
58 colors.size(), tile_mode, 0, has_matrix ? &sk_matrix : nullptr))); in initLinear()
64 const tonic::Int32List& colors, in initRadial() argument
68 FML_DCHECK(colors.size() == color_stops.size() || in initRadial()
82 reinterpret_cast<const SkColor*>(colors.data()), color_stops.data(), in initRadial()
83 colors.size(), tile_mode, 0, has_matrix ? &sk_matrix : nullptr))); in initRadial()
88 const tonic::Int32List& colors, in initSweep() argument
94 FML_DCHECK(colors.size() == color_stops.size() || in initSweep()
[all …]

12345678910>>...67