Searched refs:color2 (Results 1 - 3 of 3) sorted by relevance

/haiku/src/kits/interface/
H A DGraphicsDefs.cpp54 mix_color(rgb_color color1, rgb_color color2, uint8 amount) argument
56 color1.red = (uint8)(((int16(color2.red) - int16(color1.red)) * amount)
58 color1.green = (uint8)(((int16(color2.green) - int16(color1.green))
60 color1.blue = (uint8)(((int16(color2.blue) - int16(color1.blue)) * amount)
62 color1.alpha = (uint8)(((int16(color2.alpha) - int16(color1.alpha))
71 blend_color(rgb_color color1, rgb_color color2, uint8 amount) argument
73 const uint8 alphaMix = (uint8)(((int16(color2.alpha) - int16(255
76 color1.red = (uint8)(((int16(color2.red) - int16(color1.red)) * alphaMix)
78 color1.green = (uint8)(((int16(color2.green) - int16(color1.green))
80 color1.blue = (uint8)(((int16(color2
[all...]
/haiku/src/tests/kits/interface/flatten_picture/
H A DPictureTest.cpp268 uint32 color2 = 0; local
270 memcpy(&color2, pixel2, bpp);
272 sprintf(buffer2, "0x%8.8x", (int)color2);
/haiku/headers/os/interface/
H A DGraphicsDefs.h115 rgb_color mix_color(rgb_color color1, rgb_color color2, uint8 amount);
116 rgb_color blend_color(rgb_color color1, rgb_color color2, uint8 amount);

Completed in 101 milliseconds