blend semi-transparent color with white
| 25 | |
| 26 | // blend semi-transparent color with white |
| 27 | U8 blend(U8 c, double a) { |
| 28 | return (U8)(255 + (c - 255) * a); |
| 29 | } |
| 30 | |
| 31 | double rgb2y(U8 r, U8 g, U8 b) { return r * 0.29889531 + g * 0.58662247 + b * 0.11448223; } |
| 32 | double rgb2i(U8 r, U8 g, U8 b) { return r * 0.59597799 - g * 0.27417610 - b * 0.32180189; } |
no outgoing calls
no test coverage detected