Elektrine lite

← Feed

@stephenmeyer@techhub.social

Post #1953150

2026-05-03 19:01 UTC

Been messing around with curved shapes in p5.js using the bezierVertex() function. I made myself a little exploration tool so I could drag the control points around and see how the curve edges behave. The orientation feels kinda off to me, though. In this example, the red dots represent the shape's vertices/anchor nodes (with a north, south east, west orientation). The green dots are the Bezier control points. It feels strange that the green control points are paired together by edge rather than by anchor nodes. I get why based on how the library functions, but it is an interesting example of how the build vs. use perspectives are inverted.

Replies (0)

No replies.