Home
last modified time | relevance | path

Searched refs:colorStr (Results 1 – 7 of 7) sorted by relevance

/external/skqp/experimental/canvaskit/htmlcanvas/
Dcolor.js42 function parseColor(colorStr) { argument
43 colorStr = colorStr.toLowerCase();
45 if (colorStr.startsWith('#')) {
47 switch (colorStr.length) {
49 a = parseInt(colorStr.slice(7, 9), 16);
51 r = parseInt(colorStr.slice(1, 3), 16);
52 g = parseInt(colorStr.slice(3, 5), 16);
53 b = parseInt(colorStr.slice(5, 7), 16);
59 a = parseInt(colorStr.slice(4, 5), 16) * 17;
61 r = parseInt(colorStr.slice(1, 2), 16) * 17;
[all …]
/external/skia/modules/canvaskit/htmlcanvas/
Dcolor.js42 function parseColor(colorStr) { argument
43 colorStr = colorStr.toLowerCase();
45 if (colorStr.startsWith('#')) {
47 switch (colorStr.length) {
49 a = parseInt(colorStr.slice(7, 9), 16);
51 r = parseInt(colorStr.slice(1, 3), 16);
52 g = parseInt(colorStr.slice(3, 5), 16);
53 b = parseInt(colorStr.slice(5, 7), 16);
59 a = parseInt(colorStr.slice(4, 5), 16) * 17;
61 r = parseInt(colorStr.slice(1, 2), 16) * 17;
[all …]
/external/ImageMagick/Magick++/tests/
Dcolor.cpp31 struct colorStr in main() struct
40 struct colorStr colorMap [] = in main()
/external/deqp/modules/gles2/functional/
Des2fShaderInvarianceTests.cpp281 const char* const colorStr = (passNdx == 0) ? ("red - purple") : ("green"); in iterate() local
283 … test pattern using shader " << (passNdx+1) << ". Primitive color: " << colorStr << "." << tcu::Te… in iterate()
325 const char* const colorStr = (passNdx == 0) ? ("red - purple") : ("green"); in iterate() local
327 …-test pattern using shader " << (passNdx+1) << ". Primitive color: " << colorStr << ". DepthFunc: … in iterate()
/external/deqp/modules/gles3/functional/
Des3fShaderInvarianceTests.cpp281 const char* const colorStr = (passNdx == 0) ? ("red - purple") : ("green"); in iterate() local
283 … test pattern using shader " << (passNdx+1) << ". Primitive color: " << colorStr << "." << tcu::Te… in iterate()
325 const char* const colorStr = (passNdx == 0) ? ("red - purple") : ("green"); in iterate() local
327 …-test pattern using shader " << (passNdx+1) << ". Primitive color: " << colorStr << ". DepthFunc: … in iterate()
/external/skqp/src/svg/
DSkSVGDevice.cpp554 SkString colorStr(svg_color(color)); in addLinearGradientDef() local
559 stop.addAttribute("stop-color", colorStr.c_str()); in addLinearGradientDef()
/external/skia/src/svg/
DSkSVGDevice.cpp557 SkString colorStr(svg_color(color)); in addLinearGradientDef() local
562 stop.addAttribute("stop-color", colorStr.c_str()); in addLinearGradientDef()