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