A Processing.js bezierTangent() Example
size(300,300); background(50); PFont font; font=loadFont("Arial"); textFont(font,18); noFill(); int steps = 6; fill(0); int j=20; for (int i = 0; i <= steps; i++) { float t = i / float(steps); // Get the location of the point float x = bezierTangent(85, 10, 90, 15, t); text(x.toString(), 0,j); j+=20; float y = bezierTangent(20, 10, 90, 80, t); text(y.toString(), 0,j); j+=20; }