/external/skqp/src/core/ |
SkModeColorFilter.cpp | 27 SkModeColorFilter::SkModeColorFilter(SkColor color, SkBlendMode mode) { 28 fColor = color; 36 str->append("SkModeColorFilter: color: 0x"); 43 bool SkModeColorFilter::asColorMode(SkColor* color, SkBlendMode* mode) const { 44 if (color) { 45 *color = fColor; 71 SkColor color = buffer.readColor(); local 73 return SkColorFilter::MakeModeFilter(color, mode); 86 SkColor color = xformer->apply(fColor); local 87 if (color != fColor) [all...] |
/external/skqp/src/gpu/effects/ |
GrConstColorProcessor.cpp | 26 auto color = _outer.color(); variable 27 (void)color; variable 48 auto color = _outer.color(); variable 49 (void)color; variable 55 // We use the "illegal" color value as an uninit sentinel. With GrColor4f, the "illegal" 56 // color is *really* illegal (not just unpremultiplied), so this check is simple. 57 if (prevColor != color) { 58 pdman.set4fv(colorUniform, 1, color.fRGBA) 89 GrColor4f color; local [all...] |
GrSRGBEffect.cpp | 50 // Mali Bifrost uses fp16 for mediump. Making the intermediate color variable highp causes 52 fragBuilder->codeAppendf("float4 color = %s;", args.fInputColor); 54 fragBuilder->codeAppendf("half nonZeroAlpha = max(color.a, 0.00001);"); 55 fragBuilder->codeAppendf("color = half4(color.rgb / nonZeroAlpha, color.a);"); 57 fragBuilder->codeAppendf("color = half4(%s(color.r), %s(color.g), %s(color.b), color.a);" [all...] |
/test/vti/dashboard/src/main/webapp/css/ |
navbar.css | 27 transition: background-color .3s; 32 background-color: rgba(0,0,0,0.1); 35 background-color: #ea454b; 51 color: rgba(238, 110, 115, 0.85); 55 color: rgb(238, 110, 115); 60 color: rgba(238, 110, 115, 0.85); 66 color: rgba(255, 255, 255, 0.75);
|
/external/ImageMagick/Magick++/tests/ |
color.cpp | 5 // Test Magick::Color classes 33 const char* color; member in struct:colorStr 53 for ( int i = 0; colorMap[i].color != NULL; i++ ) 56 Color color( colorMap[i].color ); 60 if ( color != colorMatch ) 63 cout << "Line: " << __LINE__ << " Color(\"" 64 << colorMap[i].color << "\") is " 65 << string(color) [all...] |
/external/skia/tests/ |
ColorFilterTest.cpp | 60 SkColor color = rand.nextU(); local 63 // special case that would return nullptr (if color's alpha is 0 or 0xFF) 64 color = SkColorSetA(color, 0x7F); 66 auto cf = SkColorFilter::MakeModeFilter(color, (SkBlendMode)mode); 75 SkColor c = ~color; 78 SkColor expectedColor = color; 81 // SkDebugf("--- mc [%d %x] ", mode, color); 103 SkColor c2 = ~color;
|
ColorPrivTest.cpp | 15 const SkPMColor color = 0xA1B2C3D4; local 18 SkSplay(color, &ag, &rb); 21 ASSERT(SkUnsplay(ag << 8, rb << 8) == color); 23 const uint64_t agrb = SkSplay(color); 25 ASSERT(SkUnsplay(agrb<<8) == color);
|
/external/skqp/tests/ |
ColorFilterTest.cpp | 60 SkColor color = rand.nextU(); local 63 // special case that would return nullptr (if color's alpha is 0 or 0xFF) 64 color = SkColorSetA(color, 0x7F); 66 auto cf = SkColorFilter::MakeModeFilter(color, (SkBlendMode)mode); 75 SkColor c = ~color; 78 SkColor expectedColor = color; 81 // SkDebugf("--- mc [%d %x] ", mode, color); 103 SkColor c2 = ~color;
|
ColorPrivTest.cpp | 15 const SkPMColor color = 0xA1B2C3D4; local 18 SkSplay(color, &ag, &rb); 21 ASSERT(SkUnsplay(ag << 8, rb << 8) == color); 23 const uint64_t agrb = SkSplay(color); 25 ASSERT(SkUnsplay(agrb<<8) == color);
|
/packages/apps/Car/Radio/src/com/android/car/radio/ |
RadioChannelColorMapper.java | 27 * A class that will take a {@link Program} and return its corresponding color. The colors 54 mDefaultColor = context.getColor(R.color.car_radio_bg_color); 55 mAmRange1Color = context.getColor(R.color.am_range_1_bg_color); 56 mAmRange2Color = context.getColor(R.color.am_range_2_bg_color); 57 mAmRange3Color = context.getColor(R.color.am_range_3_bg_color); 58 mFmRange1Color = context.getColor(R.color.fm_range_1_bg_color); 59 mFmRange2Color = context.getColor(R.color.fm_range_2_bg_color); 60 mFmRange3Color = context.getColor(R.color.fm_range_3_bg_color); 64 * Returns the default color for the radio. 72 * Convenience method for returning a color based on a {@link Program} [all...] |
/prebuilts/go/darwin-x86/src/image/draw/ |
draw_test.go | 9 "image/color" 16 func eq(c0, c1 color.Color) bool { 23 return image.NewUniform(color.RGBA{0, 0, uint8(alpha), uint8(alpha)}) 27 return image.NewUniform(color.Alpha{uint8(alpha)}) 34 m.Set(x, y, color.RGBA{0, uint8(y * alpha / 15), 0, uint8(alpha)}) 44 m.Set(x, y, color.Alpha{uint8(y * alpha / 15)}) 54 m.Set(x, y, color.RGBA{0, uint8(y * 0x11), 0, uint8(alpha)}) 82 m.Set(x, y, color.Gray{uint8(y * 0x11)}) 92 m.Set(x, y, color.CMYK{0, uint8(y * 0x11), 0, 0x3f} [all...] |
/prebuilts/go/linux-x86/src/image/draw/ |
draw_test.go | 9 "image/color" 16 func eq(c0, c1 color.Color) bool { 23 return image.NewUniform(color.RGBA{0, 0, uint8(alpha), uint8(alpha)}) 27 return image.NewUniform(color.Alpha{uint8(alpha)}) 34 m.Set(x, y, color.RGBA{0, uint8(y * alpha / 15), 0, uint8(alpha)}) 44 m.Set(x, y, color.Alpha{uint8(y * alpha / 15)}) 54 m.Set(x, y, color.RGBA{0, uint8(y * 0x11), 0, uint8(alpha)}) 82 m.Set(x, y, color.Gray{uint8(y * 0x11)}) 92 m.Set(x, y, color.CMYK{0, uint8(y * 0x11), 0, 0x3f} [all...] |
/external/skia/experimental/docs/ |
canvasBackend.js | 5 function canvas_rbga(color) { 6 var a = canvas_opacity(color); 7 var r = (color >> 16) & 0xFF; 8 var g = (color >> 8) & 0xFF; 9 var b = (color >> 0) & 0xFF; 13 function canvas_opacity(color) { 14 var a = (color >> 24) & 0xFF; 96 var color; 111 var color = canvas_rbga(stop.color); [all...] |
/external/skqp/experimental/docs/ |
canvasBackend.js | 5 function canvas_rbga(color) { 6 var a = canvas_opacity(color); 7 var r = (color >> 16) & 0xFF; 8 var g = (color >> 8) & 0xFF; 9 var b = (color >> 0) & 0xFF; 13 function canvas_opacity(color) { 14 var a = (color >> 24) & 0xFF; 96 var color; 111 var color = canvas_rbga(stop.color); [all...] |
/development/samples/OpenGL/HelloOpenGLES10/src/com/example/android/opengl/ |
Square.java | 43 float color[] = { 0.2f, 0.709803922f, 0.898039216f, 1.0f }; field in class:Square 78 gl.glColor4f( // set color 79 color[0], color[1], 80 color[2], color[3]);
|
Triangle.java | 40 float color[] = { 0.63671875f, 0.76953125f, 0.22265625f, 0.0f }; field in class:Triangle 71 gl.glColor4f( // set color: 72 color[0], color[1], 73 color[2], color[3]);
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
ResourceHelper.java | 36 * Returns the color value represented by the given string value 38 * @param value the color value 39 * @return the color as an int 46 String.format("Color value '%s' must start with #", value)); 54 "Color value '%s' is too long. Format is either" + 60 char[] color = new char[8]; local 61 color[0] = color[1] = 'F'; 62 color[2] = color[3] = value.charAt(0) 67 char[] color = new char[8]; local [all...] |
/external/skia/samplecode/ |
SampleShadowColor.cpp | 17 // Sample to demonstrate tonal color shadows 120 SkColor color = paint.getColor(); local 122 uint8_t max = SkTMax(SkTMax(SkColorGetR(color), SkColorGetG(color)), 123 SkColorGetB(color)); 124 uint8_t min = SkTMin(SkTMin(SkColorGetR(color), SkColorGetG(color)), 125 SkColorGetB(color)); 129 SkColor spotColor = SkColorSetARGB(alpha*SkColorGetA(color), SkColorGetR(color), 142 SkColor color = paint.getColor(); local [all...] |
/external/skia/src/effects/ |
GrAlphaThresholdFragmentProcessor.fp | 47 half4 color = sk_InColor; 50 if (color.a > outerThreshold) { 51 half scale = outerThreshold / color.a; 52 color.rgb *= scale; 53 color.a = outerThreshold; 55 } else if (color.a < innerThreshold) { 56 half scale = innerThreshold / max(0.001, color.a); 57 color.rgb *= scale; 58 color.a = innerThreshold; 60 sk_OutColor = color; [all...] |
/external/skqp/src/effects/ |
GrAlphaThresholdFragmentProcessor.fp | 47 half4 color = sk_InColor; 50 if (color.a > outerThreshold) { 51 half scale = outerThreshold / color.a; 52 color.rgb *= scale; 53 color.a = outerThreshold; 55 } else if (color.a < innerThreshold) { 56 half scale = innerThreshold / max(0.001, color.a); 57 color.rgb *= scale; 58 color.a = innerThreshold; 60 sk_OutColor = color; [all...] |
/external/tensorflow/tensorflow/python/kernel_tests/ |
draw_bounding_box_op_test.py | 34 def _fillBorder(self, image, color): 39 color: Numpy color of shape [depth] and either contents RGB/RGBA. 42 image of original shape with border filled with "color". 45 ValueError: Depths of image and color don"t match. 48 if depth != color.shape[0]: 49 raise ValueError("Image (%d) and color (%d) depths must match." % 50 (depth, color.shape[0])) 51 image[0:height, 0, 0:depth] = color 52 image[0:height, width - 1, 0:depth] = color [all...] |
/frameworks/base/graphics/java/android/graphics/ |
PorterDuffColorFilter.java | 23 * A color filter that can be used to tint the source pixels using a single 24 * color and a specific {@link PorterDuff Porter-Duff composite mode}. 32 * Create a color filter that uses the specified color and Porter-Duff mode. 34 * @param color The ARGB source color used with the specified Porter-Duff mode 37 * @see Color 41 public PorterDuffColorFilter(@ColorInt int color, @NonNull PorterDuff.Mode mode) { 42 mColor = color; 47 * Returns the ARGB color used to tint the source pixels when this filte [all...] |
/frameworks/base/libs/hwui/tests/common/scenes/ |
PartialDamageAnimation.cpp | 40 SkColor color = COLORS[static_cast<int>((y / dp(116))) % 4]; variable 43 [color](RenderProperties& props, Canvas& canvas) { 44 canvas.drawColor(color, SkBlendMode::kSrcOver); 58 SkColor color = TestUtils::interpolateColor(curFrame / 150.0f, 0xFFF44336, 0xFFF8BBD0); 59 canvas.drawColor(color, SkBlendMode::kSrcOver);
|
/frameworks/support/mediarouter/src/main/java/androidx/mediarouter/app/ |
MediaRouteVolumeSlider.java | 20 import android.graphics.Color; 59 // state. Apply the color filter and alpha on every state change. 85 * Sets the volume slider color. The change takes effect next time drawable state is changed. 87 * The color cannot be translucent, otherwise the underlying progress bar will be seen through 91 public void setColor(int color) { 92 if (mColor == color) { 95 if (Color.alpha(color) != 0xFF) { 96 Log.e(TAG, "Volume slider color cannot be translucent: #" + Integer.toHexString(color)); [all...] |
/packages/apps/Messaging/src/com/android/messaging/util/ |
TintDrawableWrapper.java | 20 import android.graphics.Color; 30 * A {@link DrawableWrapper} which updates it's color filter using a {@link ColorStateList}. 57 final int color = mTintStateList.getColorForState(state, mCurrentColor); local 58 if (color != mCurrentColor) { 59 if (color != Color.TRANSPARENT) { 60 setColorFilter(color, mTintMode); 64 mCurrentColor = color;
|