Skip to content

Commit

Permalink
New function bezierPoint()
Browse files Browse the repository at this point in the history
  • Loading branch information
dliu53 committed Dec 15, 2009
1 parent 97a8675 commit 08b83f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions processing.js
Expand Up @@ -1735,6 +1735,10 @@ function buildProcessing( curElement ){

};

p.bezierPoint = function bezierPoint(a,b,c,d,t){
return (1-t)*(1-t)*(1-t)*a+3*(1-t)*(1-t)*t*b+3*(1-t)*t*t*c+t*t*t*d;
}

//end

p.bezier = function bezier( x1, y1, x2, y2, x3, y3, x4, y4 ) {
Expand Down

0 comments on commit 08b83f3

Please sign in to comment.