/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/ |
GLColor.java | 21 public final int red; field in class:GLColor 26 public GLColor(int red, int green, int blue, int alpha) { 27 this.red = red; 33 public GLColor(int red, int green, int blue) { 34 this.red = red; 44 return (red == color.red &&
|
/external/qemu/distrib/sdl-1.2.12/src/video/x11/ |
SDL_x11gamma_c.h | 27 extern int X11_SetVidModeGamma(_THIS, float red, float green, float blue); 28 extern int X11_GetVidModeGamma(_THIS, float *red, float *green, float *blue);
|
SDL_x11gamma.c | 33 static int X11_SetGammaNoLock(_THIS, float red, float green, float blue) 41 if ( red < MIN_GAMMA ) { 42 gamma.red = MIN_GAMMA; 44 if ( red > MAX_GAMMA ) { 45 gamma.red = MAX_GAMMA; 47 gamma.red = red; 69 gamma_saved[0] = gamma.red; 83 int X11_SetVidModeGamma(_THIS, float red, float green, float blue) 88 result = X11_SetGammaNoLock(this, red, green, blue) [all...] |
/external/webkit/WebCore/platform/graphics/haiku/ |
ColorHaiku.cpp | 37 : m_color(makeRGBA(color.red, color.green, color.blue, color.alpha)) 44 return make_color(red(), green(), blue(), alpha());
|
/external/webkit/WebCore/platform/graphics/qt/ |
ColorQt.cpp | 36 : m_color(makeRGBA(c.red(), c.green(), c.blue(), c.alpha())) 44 return QColor(red(), green(), blue(), alpha());
|
/external/ppp/pppd/plugins/ |
passwordfd.c | 35 int readgood, red; local 50 red = read (passwdfd, passwd + readgood, MAXSECRETLEN - 1 - readgood); 51 if (red == 0) 53 if (red < 0) { 58 readgood += red;
|
passprompt.c | 33 ssize_t red; local 73 red = read(p[0], passwd + readgood, MAXSECRETLEN-1 - readgood); 74 if (red == 0) 76 if (red < 0) { 83 readgood += red;
|
/external/webkit/WebCore/platform/graphics/filters/ |
FEColorMatrix.cpp | 70 inline void matrix(double& red, double& green, double& blue, double& alpha, const Vector<float>& values) 72 double r = values[0] * red + values[1] * green + values[2] * blue + values[3] * alpha; 73 double g = values[5] * red + values[6] * green + values[7] * blue + values[8] * alpha; 74 double b = values[10] * red + values[11] * green + values[12] * blue + values[13] * alpha; 75 double a = values[15] * red + values[16] * green + values[17] * blue + values[18] * alpha; 77 red = r; 83 inline void saturate(double& red, double& green, double& blue, const float& s) 85 double r = (0.213 + 0.787 * s) * red + (0.715 - 0.715 * s) * green + (0.072 - 0.072 * s) * blue; 86 double g = (0.213 - 0.213 * s) * red + (0.715 + 0.285 * s) * green + (0.072 - 0.072 * s) * blue; 87 double b = (0.213 - 0.213 * s) * red + (0.715 - 0.715 * s) * green + (0.072 + 0.928 * s) * blue 133 double red = r, green = g, blue = b, alpha = a; local [all...] |
/external/webkit/WebCore/platform/graphics/gtk/ |
ColorGtk.cpp | 28 : m_color(makeRGB(c.red >> 8, c.green >> 8, c.blue >> 8))
|
/external/qemu/distrib/sdl-1.2.12/src/video/ |
SDL_gamma.c | 93 int SDL_SetGamma(float red, float green, float blue) 104 CalculateGammaRamp(red, ramp[0]); 111 succeeded = video->SetGamma(this, red, green, blue); 119 int SDL_GetGamma(float *red, float *green, float *blue) 132 CalculateGammaFromRamp(red, ramp[0]); 139 succeeded = video->GetGamma(this, red, green, blue); 144 int SDL_SetGammaRamp(const Uint16 *red, const Uint16 *green, const Uint16 *blue) 163 if ( red ) { 164 SDL_memcpy(&video->gamma[0*256], red, 256*sizeof(*video->gamma)); 196 int SDL_GetGammaRamp(Uint16 *red, Uint16 *green, Uint16 *blue [all...] |
/device/google/accessory/demokit/app/src/com/google/android/DemoKit/ |
ColorWheelLEDController.java | 18 int red = Color.red(color) / 8; local 22 mActivity.sendCommand(DemoKitActivity.LED_SERVO_COMMAND,(byte)0,(byte)red); 26 mActivity.sendCommand(DemoKitActivity.LED_SERVO_COMMAND,(byte)3,(byte)red); 30 mActivity.sendCommand(DemoKitActivity.LED_SERVO_COMMAND,(byte)6,(byte)red);
|
/external/webkit/WebCore/svg/ |
ColorDistance.cpp | 38 : m_redDiff(toColor.red() - fromColor.red()) 69 return Color(clampColorValue(first.red() + second.red()), 76 return Color(clampColorValue(color.red() + m_redDiff),
|
SVGFEComponentTransferElement.cpp | 71 ComponentTransferFunction red; 78 red = static_cast<SVGFEFuncRElement*>(n)->transferFunction(); 87 RefPtr<FilterEffect> effect = FEComponentTransfer::create(input1, red, green, blue, alpha);
|
/external/webkit/WebCore/platform/graphics/wx/ |
ColorWx.cpp | 36 m_color = makeRGBA((int)color.Red(), (int)color.Green(), (int)color.Blue(), (int)color.Alpha()); 41 return wxColour(red(), green(), blue(), alpha());
|
/frameworks/base/graphics/java/android/graphics/ |
Color.java | 26 * Colors are represented as packed ints, made up of 4 bytes: alpha, red, 29 * components are stored as follows (alpha << 24) | (red << 16) | 33 * no contributions from red, green, or blue), and opaque-white would be 42 public static final int RED = 0xFFFF0000; 59 * Return the red component of a color int. This is the same as saying 62 public static int red(int color) { method in class:Color 83 * Return a color-int from red, green, blue components. 88 * @param red Red component [0..255] of the color 92 public static int rgb(int red, int green, int blue) 258 float red = 0.0f; local [all...] |
/external/skia/src/animator/ |
SkDrawColor.cpp | 33 SkScalar red = SkIntToScalar(SkColorGetR(color)); local 36 SkScalar min = SkMinScalar(SkMinScalar(red, green), blue); 37 SkScalar value = SkMaxScalar(SkMaxScalar(red, green), blue); 49 if (red == value) { 55 hue = 120 * SK_Scalar1 + SkScalarMul(blue - red, part60); 57 hue = 240 * SK_Scalar1 + SkScalarMul(red - green, part60); 63 #if defined _WIN32 && _MSC_VER >= 1300 // disable 'red', etc. may be used without having been initialized 73 SkScalar red SK_INIT_TO_AVOID_WARNING; 77 red = green = blue = value; 87 case 0: red = value; green = t; blue = p; break [all...] |
/sdk/traceview/src/com/android/traceview/ |
ColorController.java | 36 new RGB(255, 0, 0), // red 42 new RGB(150, 0, 0), // dark red 46 new RGB(255, 150, 150), // light red 59 return requestColor(display, rgb.red, rgb.green, rgb.blue); 63 return requestColorSquare(display, rgb.red, rgb.green, rgb.blue); 66 public static Color requestColor(Display display, int red, int green, int blue) { 67 int key = (red << 16) | (green << 8) | blue; 70 color = new Color(display, red, green, blue); 76 public static Image requestColorSquare(Display display, int red, int green, int blue) { 77 int key = (red << 16) | (green << 8) | blue [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
LinearGradientTest.java | 53 int[] color = { Color.BLUE, Color.GREEN, Color.RED }; 66 // GREEN -> RED, G sub-value decreasing while R sub-value increasing 69 assertTrue(Color.red(b.getPixel(10, 15)) < Color.red(b.getPixel(10, 20))); 70 assertTrue(Color.red(b.getPixel(10, 20)) < Color.red(b.getPixel(10, 25))); 72 lg = new LinearGradient(0, 0, 0, 40, Color.RED, Color.BLUE, TileMode.CLAMP); 77 // RED -> BLUE, R sub-value decreasing while B sub-value increasing 78 assertTrue(Color.red(b.getPixel(10, 0)) > Color.red(b.getPixel(10, 15))) [all...] |
/external/libpng/contrib/gregbook/ |
readpng.c | 154 int readpng_get_bgcolor(uch *red, uch *green, uch *blue) 172 * takes a pointer to a pointer, and it always returns valid red, green 182 *red = pBackground->red >> 8; 187 *red = *green = *blue = pBackground->gray? 255 : 0; 189 *red = *green = *blue = (255/3) * pBackground->gray; 191 *red = *green = *blue = (255/15) * pBackground->gray; 193 *red = (uch)pBackground->red;
|
/external/webkit/WebCore/css/ |
RGBColor.idl | 25 readonly attribute CSSPrimitiveValue red;
|
RGBColor.h | 40 PassRefPtr<CSSPrimitiveValue> red();
|
/sdk/eclipse/scripts/ |
_mk_icons.sh | 4 # $1=letter, $2=letter's color (e.g. A red), $3=filename 10 icon S red signature 20 icon P red permission 25 icon P red permission 30 icon P red provider 47 icon A red action
|
/external/webkit/WebCore/platform/graphics/cairo/ |
FontCairo.cpp | 82 Color shadowFillColor(shadowColor.red(), shadowColor.green(), shadowColor.blue(), shadowColor.alpha() * fillColor.alpha() / 255); 85 float red, green, blue, alpha; local 86 shadowFillColor.getRGBA(red, green, blue, alpha); 87 cairo_set_source_rgba(cr, red, green, blue, alpha); 147 float red, green, blue, alpha; local 148 fillColor.getRGBA(red, green, blue, alpha); 149 cairo_set_source_rgba(cr, red, green, blue, alpha * context->getAlpha()); 178 float red, green, blue, alpha; local 179 strokeColor.getRGBA(red, green, blue, alpha); 180 cairo_set_source_rgba(cr, red, green, blue, alpha * context->getAlpha()) [all...] |
/external/libpng/ |
pngrtran.c | 499 int r = (palette[i].red >> (8 - PNG_DITHER_RED_BITS)); 676 png_set_rgb_to_gray(png_structp png_ptr, int error_action, double red, 682 if (red > 21474.83647 || red < -21474.83648 || 691 red_fixed = (int)((float)red*100000.0 + 0.5); 700 png_fixed_point red, png_fixed_point green) 729 if (red < 0 || green < 0) 734 else if (red + green < 100000L) 736 red_int = (png_uint_16)(((png_uint_32)red*32768L)/100000L); 815 png_ptr->background.red == png_ptr->background.green & 2359 png_byte red = png_ptr->gamma_to_1[*(sp++)]; local 2379 png_byte red = *(sp++); local 2403 png_uint_16 red, green, blue, w; local 2438 png_uint_16 red, green, blue, gray16; local 2464 png_byte red = png_ptr->gamma_to_1[*(sp++)]; local 2481 png_byte red = *(sp++); local 2501 png_uint_16 red, green, blue, w; local 2538 png_uint_16 red, green, blue, gray16; local 3992 png_byte red = trans_value->red & 0xff; local 4456 png_uint_32 red = (png_uint_32)((s0 + s1 + 65536L) & 0xffffL); local [all...] |
/external/qemu/distrib/libpng-1.2.19/ |
pngrtran.c | 475 int r = (palette[i].red >> (8 - PNG_DITHER_RED_BITS)); 643 png_set_rgb_to_gray(png_structp png_ptr, int error_action, double red, 646 int red_fixed = (int)((float)red*100000.0 + 0.5); 655 png_fixed_point red, png_fixed_point green) 678 if(red < 0 || green < 0) 683 else if(red + green < 100000L) 685 red_int = (png_uint_16)(((png_uint_32)red*32768L)/100000L); 757 png_ptr->background.red == png_ptr->background.green && 758 png_ptr->background.red == png_ptr->background.blue) 761 png_ptr->background.gray = png_ptr->background.red; 2254 png_byte red = png_ptr->gamma_to_1[*(sp++)]; local 2274 png_byte red = *(sp++); local 2298 png_uint_16 red, green, blue, w; local 2332 png_uint_16 red, green, blue, gray16; local 2358 png_byte red = png_ptr->gamma_to_1[*(sp++)]; local 2375 png_byte red = *(sp++); local 2395 png_uint_16 red, green, blue, w; local 2431 png_uint_16 red, green, blue, gray16; local 3852 png_byte red = trans_value->red & 0xff; local 4273 png_uint_32 red = (png_uint_32)((s0+s1+65536L) & 0xffffL); local [all...] |