How to use b-spline - 2 common examples

To help you get started, we’ve selected a few b-spline examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rolyatmax / sketches / src / defamatory-roundabout.js View on Github external
function calculatePoints (controls) {
  const points = []
  let progress = 0
  while (progress < 1) {
    points.push(bspline(progress, degree, controls))
    progress += 0.01
  }
  return points
}
github rolyatmax / waves / index.js View on Github external
function calculateSplinePoints (controls, degree) {
  const points = []
  const granularity = 100
  let i = 0
  while (i <= granularity) {
    const progress = i / granularity
    points.push(bspline(progress, degree, controls))
    i += 1
  }
  return points
}

b-spline

B-spline interpolation

MIT
Latest version published 3 years ago

Package Health Score

51 / 100
Full package analysis

Popular b-spline functions