4 ms·
This is something like the 4th or 5th time I've seen Bezier curves appear on HN. What do you IT guys even use them for? Vector graphics? As a MechE, we encount
by NamTaf 12y ago
This is something like the 4th or 5th time I've seen Bezier curves appear on HN. What do you IT guys even use them for? Vector graphics?
As a MechE, we encounter them mainly due to CAD and associated computational engineering, but I couldn't map how they'd be used in the more general IT world. I'd love to hear some use cases!
- sbochins 12y agoThey're also useful for 3d graphics. I used them a lot in blender when making assets for a game.
- archagon 12y agoI'm using them right now to implement smooth line drawing in an iOS app. Really easy and effective! Also, it's super easy to create programmatic art for your app using the CoreGraphics API. If you go that route, there's a good chance you'll be creating a few UIBezierCurve objects along the way.
- louthy 12y agoI used them years ago to create bezier patch landscapes in games (PS1, PS2 era,...) . They allow for adaptive resolution which is great when you want to get rid of that rigid polygon look.
- dahart 12y agoYou'll see some use cases and examples if you explore the links in the article, e.g., https://github.com/mbostock/d3/wiki/Gallery https://github.com/mbostock/d3/wiki/Gallery Bezier curves are used heavily in animation, and pretty much anything graphical, from fonts to games to web browsers.
- abdias 12y agoI use them for timing functions such as various easeings etc. But also for graphics, though here I tend to use cardinal/catmull-rom splines more. Edit: I did make a JS implementation of the latter if anyone's interested (MIT): https://github.com/epistemex/cardinal-spline-js https://github.com/epistemex/cardinal-spline-js