Skip to content

Commit

Permalink
comment: todo item for shorter bezier paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ezl committed Aug 29, 2013
1 parent 674eb14 commit f7f5573
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion assets/bezier.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@
var getBezierControlPoints = function(sampledPoints) {
if (sampledPoints.length < 4) {
console.log("too short:", sampledPoints);
// should do linear or quadratic beziers
// TODO
// len == 2 another special case, draw a line
// len == 3 draw quadratic
// len >= 4 do what we are currently doing.
return;
}
var M = generate141Matrix(sampledPoints.length - 2);
Expand Down

0 comments on commit f7f5573

Please sign in to comment.