Analytic functions that take values in a convex region