Skip to content

How to interpolate a line with a custom Function type? #4282

Answered by ckifer
LauGroupie95 asked this question in Q&A
Discussion options

You must be logged in to vote

Oh weird, looks like it didn't save right. All I was doing was adding a function in the "type" field like so:

type={(path) => { return curveGenerator}}

That's basically where you would do your math and then return a custom curve generator

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@LauGroupie95
Comment options

@ckifer
Comment options

Answer selected by LauGroupie95
@LauGroupie95
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants