Spline Sketchpad

Using B-spline interpolation and approximation, this Demonstration turns your mouse's motion into smooth B-spline curves. Drag the pointer and release. The sketchpad takes care of the rest.
You can set color, opacity, and thickness for each curve. The other controls change global properties.
The higher the "approximation" slider value is, the smoother the resulting curves will be, but they will be less precise.


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


In this Demonstration, least squares fitting is used to generate the approximate curves.
Higher-order approximation sometimes results in undesirable fitting, if given points are not smooth enough.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.