Jump to content
Search Community

Missing BezierPlugin.bezierThrough

der_lixus test
Moderator Tag

Recommended Posts

Hey der_lixus and welcome to the GreenSock forums.

 

Yes, you can do this using MotionPathPlugin's pointsToSegment function. Sorry there's not any documentation for it yet but here's the basic usage:

// This is what the function looks like
// points is an array of x/y points, like [x, y, x, y, x, y]
// curviness and cornerThreshold are optional
function pointsToSegment(points, curviness, cornerThreshold) {}

// This is an example of how to use it
MotionPathPlugin.pointsToSegment([0, 0, 100, 200, 450, 700], 1, Math.PI / 10)

 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...