Back to News
Advertisement
Advertisement

⚔ Community Insights

Discussion Sentiment

100% Positive

Analyzed from 270 words in the discussion.

Trending Topics

#curves#https#points#editor#github#font#bezier#zier#raphlinus#fitting

Discussion (8 Comments)Read Original on HackerNews

lioeters•4 days ago
As another comment mentioned, Raph Levien has a few words to say on the topic of improving Bezier curves.

Simplifying BƩzier paths (2023) https://raphlinus.github.io/curves/2023/04/18/bezpath-simpli...

Parallel curves of cubic BƩziers (2022) https://raphlinus.github.io/curves/2022/09/09/parallel-bezie...

Fitting cubic BƩzier curves (2021) https://raphlinus.github.io/curves/2021/03/11/bezier-fitting...

adamschwartz•4 days ago
What an amazing resource.

I’ve been building a vector editor that by default draws shapes with smooth curvature and shows the comb. [1] In addition to the four point types mentioned in the article, you get a new ā€œcurveā€ point type. I’ve also been making a font editor with the same drawing capability. [2]

Both are free static web apps that use local storage and have import/export capability for SVG files (and OTF files for the font editor).

[1] https://svg.a10z.co/editor

[2] https://svg.a10z.co/font

gadgetoid•4 days ago
Well that’s wild because I had a disagreement with beziers recently and did a similar thing! [1] albeit with more madness and less polish. Driven by the a/s/d/f keys with find edges snap to reference images and curve fitting to construction geometry.

Feel I should also call out Freyr’s videos for anyone who has missed them - continuity of splines [2] and the beauty of BĆ©zier curves [3]

[1] https://gadgetoid.github.io/asdf

[2] https://youtu.be/jvPPXbo87ds

[3] https://youtu.be/aVwxzDHniEw

Fraterkes•4 days ago
I shouldn’t tell you this, cause I’m also working on a font editor, but I’d consider looking into Raph Levien’s Hyperbezier work
larodi•about 15 hours ago
Illustrations in the article are indeed precious teaching material
peter_d_sherman•about 1 hour ago
>"The linear interpolations (aka lerps) can be summarized into a single compact formula, e.g. for 4 control points (A,B,C,D):

γ(t)=Aā‹…(1āˆ’t)^3+Bā‹…3(1āˆ’t)^2ā‹…t+Cā‹…3(1āˆ’t)t^2+Dā‹…t^3

The rule is simple: descending powers of (1āˆ’t), ascending powers of t, with coefficients taken from the n'th row of Pascal's triangle.

I've never seen the connection between the equation for Bezier Curves (more specifically the linear equations of curves with N control points aka "binding points" / "points of stability" / "fixed points" / "immovable points", etc.) and Pascal's Triangle before!

Brilliant!

Great article, too!