I am looking for a function $f(x)$, defined on $[0,1]$ and depending on a parameter $\lambda \in (0,1)$, that approximately has the attached shape(s). One requirement is that $\int_0^1 f(x)dx = \lambda$. In my sketch I drew the function for different example values of $\lambda$.
Which functions take such a form? What would be their expression? Or which method could I use to find such a function?
I would be grateful for any help!