Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
danehansen

BezierPlugin.bezierThrough with type = 'soft'

Go to solution Solved by OSUblake,

Recommended Posts

when using `BezierPlugin` to tween something along a bezier curve, you are able to add a `type` of values  `thru`, `soft`, `quadratic`, or `cubic`. is there a way to get a curve of similar results when getting bezier objects from `BezierPlugin.bezierThrough`? i understand that there is the `curviness` argument, but i would really like to apply `soft` to my data i am getting back. thanks.

Link to post
Share on other sites

The bezierThrough method is only for doing Beziers with type thru as it's proprietary. The soft method is not, and is pretty common if you search around.

 

But you don't have to do that. I made a demo the other day to show somebody about using that method to draw stuff, so I just added the soft type so you can see a side-by-side comparison. Blue is the thru, and red is soft. 

See the Pen 7047db2bc35bde1c480e954878a2e699?editors=0010 by osublake (@osublake) on CodePen

 

.

  • Like 4
Link to post
Share on other sites

this is great. i remember reading about this technique back in the day but totally forgot about it. thanks.

  • Like 1
Link to post
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.

×