255*(x-y+h)/(w+h)