The barycentric coordinates of are derived from the areas of sub-triangles .
Note however that depending on as well as the distribution of colours in the palette, there may not always be an exact solution for any given . Instead we’ll say that we want to minimise the absolute error between and some linear combination , or .
,更多细节参见同城约会
// Async variants
const res = [];