Searched refs:color (Results 1 - 25 of 408) sorted by relevance

1234567891011>>

/haiku/src/servers/app/
H A DRGBColor.cpp45 \param color RGB16 color
47 This function will do nothing if passed a NULL 32-bit color.
50 SetRGBColor16(rgb_color *col,uint16 color)
60 r16= (color >> 11) & 31;
61 g16= (color >> 5) & 63;
62 b16= color & 31;
71 \brief Finds the index of the closest matching color in a rgb_color palette array
73 \param color Color to match
74 \return Index of the closest matching color
80 FindClosestColor(const rgb_color *palette, rgb_color color) argument
115 FindClosestColor15(rgb_color color) argument
140 FindClosestColor16(rgb_color color) argument
187 RGBColor(const rgb_color &color) argument
207 RGBColor(uint8 color) argument
217 RGBColor(const RGBColor &color) argument
373 SetColor(const rgb_color &color) argument
385 SetColor(const RGBColor &color) argument
402 operator =(const RGBColor &color) argument
421 operator =(const rgb_color &color) argument
[all...]
H A DRGBColor.h25 RGBColor(const rgb_color& color);
26 RGBColor(uint16 color);
27 RGBColor(uint8 color);
28 RGBColor(const RGBColor& color);
46 void SetColor(const rgb_color& color);
47 void SetColor(const RGBColor& color);
49 const RGBColor& operator=(const RGBColor& color);
50 const RGBColor& operator=(const rgb_color& color);
52 bool operator==(const rgb_color& color) const;
53 bool operator==(const RGBColor& color) cons
[all...]
H A DSystemPalette.cpp28 This functions defines an metric on the RGB color space. The distance
31 \param red1 Red component of the first color.
32 \param green1 Green component of the first color.
33 \param blue1 Blue component of the first color.
34 \param red2 Red component of the second color.
35 \param green2 Green component of the second color.
36 \param blue2 Blue component of the second color.
58 FindClosestColor(const rgb_color &color, const rgb_color *palette) argument
64 unsigned distance = color_distance(color.red, color
76 InvertColor(const rgb_color &color) argument
[all...]
/haiku/src/servers/app/drawing/Painter/drawing_modes/
H A DDrawingModeAlphaPC.h35 rgb_color color = pattern->ColorAt(x, y); local
36 uint16 alpha = color.alpha * cover;
38 ASSIGN_ALPHA_PC(p, color.red, color.green, color.blue);
40 BLEND_ALPHA_PC(p, color.red, color.green, color.blue, alpha);
52 rgb_color color = pattern->ColorAt(x, y); local
53 uint16 alpha = color
74 rgb_color color = pattern->ColorAt(x, y); local
97 rgb_color color = pattern->ColorAt(x, y); local
[all...]
H A DDrawingModeAlphaPCSolid.h32 blend_pixel_alpha_pc_solid(int x, int y, const color_type& color, uint8 cover, argument
36 uint16 alpha = color.a * cover;
38 ASSIGN_ALPHA_PC(p, color.r, color.g, color.b);
40 BLEND_ALPHA_PC(p, color.r, color.g, color.b, alpha);
47 const color_type& color, uint8 cover,
51 uint16 alpha = color
46 blend_hline_alpha_pc_solid(int x, int y, unsigned len, const color_type& color, uint8 cover, agg_buffer* buffer, const PatternHandler*) argument
71 blend_solid_hspan_alpha_pc_solid(int x, int y, unsigned len, const color_type& color, const uint8* covers, agg_buffer* buffer, const PatternHandler*) argument
92 blend_solid_vspan_alpha_pc_solid(int x, int y, unsigned len, const color_type& color, const uint8* covers, agg_buffer* buffer, const PatternHandler*) argument
[all...]
H A DDrawingModeAlphaPO.h35 rgb_color color = pattern->ColorAt(x, y); local
36 uint16 alpha = color.alpha * cover;
38 ASSIGN_ALPHA_PO(p, color.red, color.green, color.blue);
40 BLEND_ALPHA_PO(p, color.red, color.green, color.blue, alpha);
52 rgb_color color = pattern->ColorAt(x, y); local
53 uint16 alpha = color
74 rgb_color color = pattern->ColorAt(x, y); local
99 rgb_color color = pattern->ColorAt(x, y); local
[all...]
H A DDrawingModeSelect.h62 rgb_color color; local
63 if (compare(p, high, low, &color)) {
65 ASSIGN_SELECT(p, color.red, color.green, color.blue);
67 BLEND_SELECT(p, color.red, color.green, color.blue, cover);
82 rgb_color color; local
86 && compare(p, high, low, &color))
112 rgb_color color; local
140 rgb_color color; local
168 rgb_color color; local
[all...]
H A DDrawingModeBlend.h42 rgb_color color = pattern->ColorAt(x, y); local
44 ASSIGN_BLEND(p, color.red, color.green, color.blue);
46 BLEND_BLEND(p, color.red, color.green, color.blue, cover);
59 rgb_color color = pattern->ColorAt(x, y); local
61 ASSIGN_BLEND(p, color.red, color
68 rgb_color color = pattern->ColorAt(x, y); local
86 rgb_color color = pattern->ColorAt(x, y); local
110 rgb_color color = pattern->ColorAt(x, y); local
[all...]
H A DDrawingModeErase.h36 rgb_color color = pattern->LowColor(); local
38 ASSIGN_ERASE(p, color.red, color.green, color.blue);
40 BLEND_ERASE(p, color.red, color.green, color.blue, cover);
52 rgb_color color = pattern->LowColor(); local
55 p8[0] = (uint8)color.blue;
56 p8[1] = (uint8)color
68 rgb_color color = pattern->LowColor(); local
86 rgb_color color = pattern->LowColor(); local
112 rgb_color color = pattern->LowColor(); local
[all...]
H A DDrawingModeMax.h47 rgb_color color = pattern->ColorAt(x, y); local
49 ASSIGN_MAX(p, color.red, color.green, color.blue);
51 BLEND_MAX(p, color.red, color.green, color.blue, cover);
64 rgb_color color = pattern->ColorAt(x, y); local
66 ASSIGN_MAX(p, color.red, color
73 rgb_color color = pattern->ColorAt(x, y); local
91 rgb_color color = pattern->ColorAt(x, y); local
115 rgb_color color = pattern->ColorAt(x, y); local
[all...]
H A DDrawingModeMin.h41 rgb_color color = pattern->ColorAt(x, y); local
43 ASSIGN_MIN(p, color.red, color.green, color.blue);
45 BLEND_MIN(p, color.red, color.green, color.blue, cover);
58 rgb_color color = pattern->ColorAt(x, y); local
60 ASSIGN_MIN(p, color.red, color
67 rgb_color color = pattern->ColorAt(x, y); local
85 rgb_color color = pattern->ColorAt(x, y); local
109 rgb_color color = pattern->ColorAt(x, y); local
[all...]
H A DDrawingModeOver.h36 rgb_color color = pattern->HighColor(); local
38 ASSIGN_OVER(p, color.red, color.green, color.blue);
40 BLEND_OVER(p, color.red, color.green, color.blue, cover);
52 rgb_color color = pattern->HighColor(); local
55 p8[0] = (uint8)color.blue;
56 p8[1] = (uint8)color
68 rgb_color color = pattern->HighColor(); local
86 rgb_color color = pattern->HighColor(); local
112 rgb_color color = pattern->HighColor(); local
[all...]
H A DDrawingModeCopy.h36 rgb_color color = pattern->ColorAt(x, y); local
38 ASSIGN_COPY(p, color.red, color.green, color.blue, color.alpha);
41 BLEND_COPY(p, color.red, color.green, color.blue, cover,
53 // cache the low and high color as 32bit values
54 // high color
55 rgb_color color = pattern->HighColor(); local
84 rgb_color color = pattern->ColorAt(x, y); local
102 rgb_color color = pattern->ColorAt(x, y); local
128 rgb_color color = pattern->ColorAt(x, y); local
[all...]
H A DDrawingModeAlphaCC.h35 rgb_color color = pattern->ColorAt(x, y); local
38 ASSIGN_ALPHA_CC(p, color.red, color.green, color.blue);
40 BLEND_ALPHA_CC(p, color.red, color.green, color.blue, alpha);
50 rgb_color color = pattern->HighColor(); local
51 uint16 alpha = color.alpha * cover;
53 // cache the low and high color a
82 rgb_color color = pattern->ColorAt(x, y); local
99 rgb_color color = pattern->ColorAt(x, y); local
123 rgb_color color = pattern->ColorAt(x, y); local
[all...]
H A DDrawingModeAlphaCO.h35 rgb_color color = pattern->ColorAt(x, y); local
38 ASSIGN_ALPHA_CO(p, color.red, color.green, color.blue);
40 BLEND_ALPHA_CO(p, color.red, color.green, color.blue, alpha);
50 rgb_color color = pattern->HighColor(); local
51 uint16 alpha = color.alpha * cover;
53 // cache the low and high color a
82 rgb_color color = pattern->ColorAt(x, y); local
99 rgb_color color = pattern->ColorAt(x, y); local
125 rgb_color color = pattern->ColorAt(x, y); local
[all...]
H A DDrawingModeSelectSUBPIX.h31 rgb_color color; local
37 if (compare(p, high, low, &color)){
38 BLEND_SELECT_SUBPIX(p, color.red, color.green, color.blue,
H A DDrawingModeAdd.h44 rgb_color color = pattern->ColorAt(x, y); local
46 ASSIGN_ADD(p, color.red, color.green, color.blue);
48 BLEND_ADD(p, color.red, color.green, color.blue, cover);
61 rgb_color color = pattern->ColorAt(x, y); local
63 ASSIGN_ADD(p, color.red, color
70 rgb_color color = pattern->ColorAt(x, y); local
88 rgb_color color = pattern->ColorAt(x, y); local
112 rgb_color color = pattern->ColorAt(x, y); local
[all...]
H A DDrawingModeSubtract.h46 rgb_color color = pattern->ColorAt(x, y); local
48 ASSIGN_SUBTRACT(p, color.red, color.green, color.blue);
50 BLEND_SUBTRACT(p, color.red, color.green, color.blue, cover);
63 rgb_color color = pattern->ColorAt(x, y); local
65 ASSIGN_SUBTRACT(p, color.red, color
72 rgb_color color = pattern->ColorAt(x, y); local
90 rgb_color color = pattern->ColorAt(x, y); local
114 rgb_color color = pattern->ColorAt(x, y); local
[all...]
/haiku/src/apps/icon-o-matic/style/
H A DCurrentColor.cpp29 CurrentColor::SetColor(rgb_color color) argument
31 if ((uint32&)fColor == (uint32&)color)
34 fColor = color;
/haiku/src/build/libbe/interface/
H A DSystemPalette.cpp26 This functions defines an metric on the RGB color space. The distance
29 \param red1 Red component of the first color.
30 \param green1 Green component of the first color.
31 \param blue1 Blue component of the first color.
32 \param red2 Red component of the second color.
33 \param green2 Green component of the second color.
34 \param blue2 Blue component of the second color.
56 FindClosestColor(const rgb_color &color, const rgb_color *palette) argument
62 unsigned distance = color_distance(color.red, color
74 InvertColor(const rgb_color &color) argument
[all...]
/haiku/src/preferences/appearance/
H A DColorWhichItem.h24 rgb_color color);
31 void SetColor(rgb_color color) { fColor = color; }; argument
H A DColorWhichListView.cpp55 rgb_color color = colorWhichItem->Color();
58 hexStr.SetToFormat("#%.2X%.2X%.2X", color.red, color.green, color.blue);
63 message.AddData(kRGBColor, B_RGB_COLOR_TYPE, &color, sizeof(color));
83 view->SetHighColor(std::min(255, (int)(1.2 * color.red + 40)),
84 std::min(255, (int)(1.2 * color.green + 40)),
85 std::min(255, (int)(1.2 * color.blue + 40)));
91 view->SetHighColor((int32)(0.8 * color
121 rgb_color* color; local
[all...]
/haiku/src/apps/icon-o-matic/gui/
H A DSwatchGroup.cpp56 rgb_color color; local
57 color.alpha = 255;
70 color.red = (uint8)(255.0 * r);
71 color.green = (uint8)(255.0 * g);
72 color.blue = (uint8)(255.0 * b);
74 this, color, SWATCH_VIEW_WIDTH, SWATCH_VIEW_HEIGHT);
84 // create current color swatch view
86 new BMessage(MSG_COLOR_PICKER), this, color, 28.0, 28.0);
88 // When the color of this swatch changes via drag&drop, we want to
89 // adopt it as current color
188 rgb_color color; local
249 rgb_color color; local
279 SetCurrentColor(CurrentColor* color) argument
301 _SetColor(rgb_color color) argument
315 rgb_color color; local
[all...]
/haiku/src/apps/poorman/
H A DPoorManLogger.h21 rgb_color color = BLACK
28 rgb_color color
/haiku/src/add-ons/screen_savers/gravity/
H A DColorItem.h20 ColorItem(const char* string, rgb_color color);
23 virtual void SetColor(rgb_color color);

Completed in 111 milliseconds

1234567891011>>