C++ (Qt)ARGB GetColor( const Point & A, const Point & B, const Point & C, float alpha, float beta ){ return A.color * (1 - alpha - beta) + B.color * alpha + C.color * beta;}