Graduated curve offsetting

25 views
Skip to first unread message

Michele Diegoli

unread,
Jan 31, 2023, 8:36:50 AM1/31/23
to Paper.js
Hi,
how can i create something similar to the one in subject using paperjs? https://pomax.github.io/bezierinfo/ (§40, here is an example in pure js).
Thanks
Michele

Paul Badger

unread,
Jan 31, 2023, 8:42:06 AM1/31/23
to pap...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "Paper.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to paperjs+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/paperjs/cff991cf-6625-4c1d-a9fe-82961b77c3d7n%40googlegroups.com.

M M

unread,
Jan 31, 2023, 8:56:49 AM1/31/23
to Paper.js
Every path has a curves array.  You can use CurveLocation with neighboring items in the curves array to traverse the curve and get individual points on the path.  Each of these points can give you the normal at that point and then you can add your graduated offset.

Michele Diegoli

unread,
Feb 1, 2023, 9:23:22 AM2/1/23
to pap...@googlegroups.com
Thank you for the suggest.
As soon as I can, I will post the code.
Regards
Michele

--
You received this message because you are subscribed to the Google Groups "Paper.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to paperjs+u...@googlegroups.com.


--
Michele Diegoli

pers. mic...@diegoli.org

«Insegui ciò che ami, o finirai per amare ciò che trovi»
Reply all
Reply to author
Forward
0 new messages