I want to animate something with the same frequency that a human breathes in and out, something like the Apple Macbook power light when it is in sleep mode.
So basically an ease in ease out function over time, but that has a curve that approximates the way a human breathes.
Edit: I just need the algorithm as a function of time, don't care which language.
Pretty close graph of what I need on this page:
http://www.normalbreathing.com/d/etco2-capnography.php