static int blend(double x, double y, double yish) { double xish = 1-yish; ret (int) (x*xish+y*yish); }