I'm programming some commands in a graphic application, and once again my extremely limited mathematical knowledge has found me rather stumped.
Here is my cubic bezier function, written in JavaScript syntax(this is not actually JavaScript, though):
function getBezier(percent,p1,cp1,cp2,p2) {...